change FLTK scheme for in dillo2
Greetings. Can I change colours of dialogues and scrollbar in dillo2? I would like to gets something less bright. Even something like fluid2's -bg option will be ok. Thank you for great lightweight browser. -- ?????? ??????????? aka AkhIL ??? ??? 7 13:39:04 KRAST 2009 Thu May 7 05:39:04 UTC 2009 ---------------------------------- Visit my home page http://akhilman.blogspot.com/ jabber: akhil@jabber.ru ---------------------------------- ??? ????????? ????????? ????????? ??, ??? ?? ??????? ?????????, ?????? ?? ???? ????, ??? ?? ???????????? ??? ?????????. (?.?????????) ---------------------------------- Linux artstation 2.6.28-gentoo-r5 #1 SMP Sat May 2 18:40:24 KRAST 2009 x86_64 AMD Phenom(tm) 9550 Quad-Core Processor AuthenticAMD GNU/Linux up 4 days, 18:33, 4 users, load average: 0.48, 0.40, 0.37
IL'dar wrote:
Can I change colours of dialogues and scrollbar in dillo2? I would like to gets something less bright. Even something like fluid2's -bg option will be ok.
Not currently. I would not necessarily be opposed to making ui_fg and ui_bg prefs and adding a bunch of [class]::default_style->[whatever]color() to dillo.cc, although I wouldn't be surprised if we ran into our share of places where fltk hardcodes things to, say, GRAY75.
On Thu, May 07, 2009 at 03:44:19PM +0000, corvid wrote:
IL'dar wrote:
Can I change colours of dialogues and scrollbar in dillo2? I would like to gets something less bright. Even something like fluid2's -bg option will be ok.
Not currently.
I would not necessarily be opposed to making ui_fg and ui_bg prefs and adding a bunch of [class]::default_style->[whatever]color() to dillo.cc, although I wouldn't be surprised if we ran into our share of places where fltk hardcodes things to, say, GRAY75.
What do people think about reading X resources as in attached patch (mainly copied from commented fltk2 code)? It allows to specify e.g. dillo.background:red dillo.foreground:white in your .Xdefaults Cheers, Johannes
?? Fri, 8 May 2009 00:37:50 +0200 Johannes Hofmann <Johannes.Hofmann@gmx.de> ????????:
What do people think about reading X resources as in attached patch (mainly copied from commented fltk2 code)? It allows to specify e.g.
dillo.background:red dillo.foreground:white
in your .Xdefaults
Will be great for me. I'm using .Xdefaults to tweak colour scheme for urxvt and other programs such as xpdf and puredata. -- ?????? ??????????? aka AkhIL ??? ??? 8 09:24:47 KRAST 2009 Fri May 8 01:24:47 UTC 2009 ---------------------------------- Visit my home page http://akhilman.blogspot.com/ jabber: akhil@jabber.ru ---------------------------------- ??? ????????? ????????? ????????? ??, ??? ?? ??????? ?????????, ?????? ?? ???? ????, ??? ?? ???????????? ??? ?????????. (?.?????????) ---------------------------------- Linux artstation 2.6.28-gentoo-r5 #1 SMP Sat May 2 18:40:24 KRAST 2009 x86_64 AMD Phenom(tm) 9550 Quad-Core Processor AuthenticAMD GNU/Linux up 5 days, 14:19, 4 users, load average: 0.43, 0.50, 0.52
On Fri, May 08, 2009 at 12:37:50AM +0200, Johannes Hofmann wrote:
On Thu, May 07, 2009 at 03:44:19PM +0000, corvid wrote:
IL'dar wrote:
Can I change colours of dialogues and scrollbar in dillo2? I would like to gets something less bright. Even something like fluid2's -bg option will be ok.
Not currently.
I would not necessarily be opposed to making ui_fg and ui_bg prefs and adding a bunch of [class]::default_style->[whatever]color() to dillo.cc, although I wouldn't be surprised if we ran into our share of places where fltk hardcodes things to, say, GRAY75.
What do people think about reading X resources as in attached patch (mainly copied from commented fltk2 code)? It allows to specify e.g.
dillo.background:red dillo.foreground:white
in your .Xdefaults
Jorge, what do you think about this. I actually like it more and more after using it for some days. Cheers, Johannes
On Mon, May 11, 2009 at 12:18:34AM +0200, Johannes Hofmann wrote:
On Fri, May 08, 2009 at 12:37:50AM +0200, Johannes Hofmann wrote:
On Thu, May 07, 2009 at 03:44:19PM +0000, corvid wrote:
IL'dar wrote:
Can I change colours of dialogues and scrollbar in dillo2? I would like to gets something less bright. Even something like fluid2's -bg option will be ok.
Not currently.
I would not necessarily be opposed to making ui_fg and ui_bg prefs and adding a bunch of [class]::default_style->[whatever]color() to dillo.cc, although I wouldn't be surprised if we ran into our share of places where fltk hardcodes things to, say, GRAY75.
What do people think about reading X resources as in attached patch (mainly copied from commented fltk2 code)? It allows to specify e.g.
dillo.background:red dillo.foreground:white
in your .Xdefaults
Jorge, what do you think about this. I actually like it more and more after using it for some days.
The ability to set colors as a theme is a good one. Unfortunately I've tried the patch here and saw no difference. Am I doing something wrong? (Just applied the patch and set my ~/.Xdefaults to what you suggested. No difference in "open file", nor "web search" dialogs). On a more long term basis, most probably we'll end using FLTK-1.3.x. It would be good to know what theme API it will use to avoid duplicate work. -- Cheers Jorge.-
On Wed, May 13, 2009 at 01:02:22PM -0400, Jorge Arellano Cid wrote:
On Mon, May 11, 2009 at 12:18:34AM +0200, Johannes Hofmann wrote:
On Fri, May 08, 2009 at 12:37:50AM +0200, Johannes Hofmann wrote:
On Thu, May 07, 2009 at 03:44:19PM +0000, corvid wrote:
IL'dar wrote:
Can I change colours of dialogues and scrollbar in dillo2? I would like to gets something less bright. Even something like fluid2's -bg option will be ok.
Not currently.
I would not necessarily be opposed to making ui_fg and ui_bg prefs and adding a bunch of [class]::default_style->[whatever]color() to dillo.cc, although I wouldn't be surprised if we ran into our share of places where fltk hardcodes things to, say, GRAY75.
What do people think about reading X resources as in attached patch (mainly copied from commented fltk2 code)? It allows to specify e.g.
dillo.background:red dillo.foreground:white
in your .Xdefaults
Jorge, what do you think about this. I actually like it more and more after using it for some days.
The ability to set colors as a theme is a good one. Unfortunately I've tried the patch here and saw no difference. Am I doing something wrong? (Just applied the patch and set my ~/.Xdefaults to what you suggested. No difference in "open file", nor "web search" dialogs).
Hm, did you restart X or use xrdb -merge to load the new config? You could also set the colors for all clients like this: *foreground: #ffffff *background: #555555 *selectForeground: #000000 *selectBackground: orange *cursorColor: orange and verify that other programs (e.g. xterm) have the color set properly.
On a more long term basis, most probably we'll end using FLTK-1.3.x. It would be good to know what theme API it will use to avoid duplicate work.
At least fltk-1.1 programs automatically set their color according to the X resources. The code is just commented out in fltk2. So if we should switch one day we probabely only need to remove the theme code. Cheers, Johannes
On Wed, May 13, 2009 at 07:11:10PM +0200, Johannes Hofmann wrote:
On Wed, May 13, 2009 at 01:02:22PM -0400, Jorge Arellano Cid wrote:
On Mon, May 11, 2009 at 12:18:34AM +0200, Johannes Hofmann wrote:
On Fri, May 08, 2009 at 12:37:50AM +0200, Johannes Hofmann wrote:
On Thu, May 07, 2009 at 03:44:19PM +0000, corvid wrote:
IL'dar wrote:
Can I change colours of dialogues and scrollbar in dillo2? I would like to gets something less bright. Even something like fluid2's -bg option will be ok.
Not currently.
I would not necessarily be opposed to making ui_fg and ui_bg prefs and adding a bunch of [class]::default_style->[whatever]color() to dillo.cc, although I wouldn't be surprised if we ran into our share of places where fltk hardcodes things to, say, GRAY75.
What do people think about reading X resources as in attached patch (mainly copied from commented fltk2 code)? It allows to specify e.g.
dillo.background:red dillo.foreground:white
in your .Xdefaults
Jorge, what do you think about this. I actually like it more and more after using it for some days.
The ability to set colors as a theme is a good one. Unfortunately I've tried the patch here and saw no difference. Am I doing something wrong? (Just applied the patch and set my ~/.Xdefaults to what you suggested. No difference in "open file", nor "web search" dialogs).
Hm, did you restart X or use xrdb -merge to load the new config?
You could also set the colors for all clients like this:
*foreground: #ffffff *background: #555555 *selectForeground: #000000 *selectBackground: orange *cursorColor: orange
and verify that other programs (e.g. xterm) have the color set properly.
Logged out into GDM, and also tried rebooting with the suggested file and nothing happens. xserver-xorg-core Version: 2:1.6.0-0ubuntu14 (Jaunty) -- Cheers Jorge.-
On Wed, May 13, 2009 at 04:33:26PM -0400, Jorge Arellano Cid wrote:
On Wed, May 13, 2009 at 07:11:10PM +0200, Johannes Hofmann wrote:
On Wed, May 13, 2009 at 01:02:22PM -0400, Jorge Arellano Cid wrote:
On Mon, May 11, 2009 at 12:18:34AM +0200, Johannes Hofmann wrote:
On Fri, May 08, 2009 at 12:37:50AM +0200, Johannes Hofmann wrote:
On Thu, May 07, 2009 at 03:44:19PM +0000, corvid wrote:
IL'dar wrote: > Can I change colours of dialogues and scrollbar in dillo2? > I would like to gets something less bright. > Even something like fluid2's -bg option will be ok.
Not currently.
I would not necessarily be opposed to making ui_fg and ui_bg prefs and adding a bunch of [class]::default_style->[whatever]color() to dillo.cc, although I wouldn't be surprised if we ran into our share of places where fltk hardcodes things to, say, GRAY75.
What do people think about reading X resources as in attached patch (mainly copied from commented fltk2 code)? It allows to specify e.g.
dillo.background:red dillo.foreground:white
in your .Xdefaults
Jorge, what do you think about this. I actually like it more and more after using it for some days.
The ability to set colors as a theme is a good one. Unfortunately I've tried the patch here and saw no difference. Am I doing something wrong? (Just applied the patch and set my ~/.Xdefaults to what you suggested. No difference in "open file", nor "web search" dialogs).
Hm, did you restart X or use xrdb -merge to load the new config?
You could also set the colors for all clients like this:
*foreground: #ffffff *background: #555555 *selectForeground: #000000 *selectBackground: orange *cursorColor: orange
and verify that other programs (e.g. xterm) have the color set properly.
Logged out into GDM, and also tried rebooting with the suggested file and nothing happens.
xserver-xorg-core Version: 2:1.6.0-0ubuntu14 (Jaunty)
Weird. Can you try "xrdb -merge ~/.Xdefaults" with the settings above and then start an xterm? Cheers, Johannes
On Wed, May 13, 2009 at 10:46:36PM +0200, Johannes Hofmann wrote:
On Wed, May 13, 2009 at 04:33:26PM -0400, Jorge Arellano Cid wrote:
On Wed, May 13, 2009 at 07:11:10PM +0200, Johannes Hofmann wrote:
On Wed, May 13, 2009 at 01:02:22PM -0400, Jorge Arellano Cid wrote:
On Mon, May 11, 2009 at 12:18:34AM +0200, Johannes Hofmann wrote:
On Fri, May 08, 2009 at 12:37:50AM +0200, Johannes Hofmann wrote:
On Thu, May 07, 2009 at 03:44:19PM +0000, corvid wrote: > IL'dar wrote: > > Can I change colours of dialogues and scrollbar in dillo2? > > I would like to gets something less bright. > > Even something like fluid2's -bg option will be ok. > > Not currently. > > I would not necessarily be opposed to making ui_fg and ui_bg prefs and > adding a bunch of [class]::default_style->[whatever]color() > to dillo.cc, although I wouldn't be surprised if we ran into our > share of places where fltk hardcodes things to, say, GRAY75.
What do people think about reading X resources as in attached patch (mainly copied from commented fltk2 code)? It allows to specify e.g.
dillo.background:red dillo.foreground:white
in your .Xdefaults
Jorge, what do you think about this. I actually like it more and more after using it for some days.
The ability to set colors as a theme is a good one. Unfortunately I've tried the patch here and saw no difference. Am I doing something wrong? (Just applied the patch and set my ~/.Xdefaults to what you suggested. No difference in "open file", nor "web search" dialogs).
Hm, did you restart X or use xrdb -merge to load the new config?
You could also set the colors for all clients like this:
*foreground: #ffffff *background: #555555 *selectForeground: #000000 *selectBackground: orange *cursorColor: orange
and verify that other programs (e.g. xterm) have the color set properly.
Logged out into GDM, and also tried rebooting with the suggested file and nothing happens.
xserver-xorg-core Version: 2:1.6.0-0ubuntu14 (Jaunty)
Weird. Can you try "xrdb -merge ~/.Xdefaults" with the settings above and then start an xterm?
Here, for some reason, xterm didn't react to *foreground nor *background, but honored "*cursorColor". At the same time Xpdf reacted to *background though. Sometimes dillo changed its colors after a "xrdb -merge ~/.Xdefaults". Others a xserver restart was needed. In a nutshell, here, sometimes it works, and sometimes it doesn't. That, and considering dillo running native in OSX, left me wondering why not just making theme-colors plain dillorc options. AFAIS it would work more reliably and in more platforms. -- Cheers Jorge.-
On Thu, May 14, 2009 at 03:29:24PM +0000, corvid wrote:
Jorge wrote:
Here, for some reason, xterm didn't react to *foreground nor *background, but honored "*cursorColor". At the same time Xpdf reacted to *background though.
Are you starting xterm from the cmdline
cmdline.
or from some menu that has -fg and -bg specified in a config file?
Besides ~/.xterm what other config file it has? -- Cheers Jorge.-
Jorge wrote:
On Thu, May 14, 2009 at 03:29:24PM +0000, corvid wrote:
Jorge wrote:
Here, for some reason, xterm didn't react to *foreground nor *background, but honored "*cursorColor". At the same time Xpdf reacted to *background though.
Are you starting xterm from the cmdline
cmdline.
or from some menu that has -fg and -bg specified in a config file?
Besides ~/.xterm what other config file it has?
Oh well. It didn't work the first time I tried it because terminals are the one thing that I start from an fvwm menu, and my fvwm2rc has the colors specified using flags...
On Thu, May 14, 2009 at 10:32:25AM -0400, Jorge Arellano Cid wrote:
On Wed, May 13, 2009 at 10:46:36PM +0200, Johannes Hofmann wrote:
On Wed, May 13, 2009 at 04:33:26PM -0400, Jorge Arellano Cid wrote:
On Wed, May 13, 2009 at 07:11:10PM +0200, Johannes Hofmann wrote:
On Wed, May 13, 2009 at 01:02:22PM -0400, Jorge Arellano Cid wrote:
On Mon, May 11, 2009 at 12:18:34AM +0200, Johannes Hofmann wrote:
On Fri, May 08, 2009 at 12:37:50AM +0200, Johannes Hofmann wrote: > On Thu, May 07, 2009 at 03:44:19PM +0000, corvid wrote: > > IL'dar wrote: > > > Can I change colours of dialogues and scrollbar in dillo2? > > > I would like to gets something less bright. > > > Even something like fluid2's -bg option will be ok. > > > > Not currently. > > > > I would not necessarily be opposed to making ui_fg and ui_bg prefs and > > adding a bunch of [class]::default_style->[whatever]color() > > to dillo.cc, although I wouldn't be surprised if we ran into our > > share of places where fltk hardcodes things to, say, GRAY75. > > What do people think about reading X resources as in attached patch > (mainly copied from commented fltk2 code)? > It allows to specify e.g. > > dillo.background:red > dillo.foreground:white > > in your .Xdefaults
Jorge, what do you think about this. I actually like it more and more after using it for some days.
The ability to set colors as a theme is a good one. Unfortunately I've tried the patch here and saw no difference. Am I doing something wrong? (Just applied the patch and set my ~/.Xdefaults to what you suggested. No difference in "open file", nor "web search" dialogs).
Hm, did you restart X or use xrdb -merge to load the new config?
You could also set the colors for all clients like this:
*foreground: #ffffff *background: #555555 *selectForeground: #000000 *selectBackground: orange *cursorColor: orange
and verify that other programs (e.g. xterm) have the color set properly.
Logged out into GDM, and also tried rebooting with the suggested file and nothing happens.
xserver-xorg-core Version: 2:1.6.0-0ubuntu14 (Jaunty)
Weird. Can you try "xrdb -merge ~/.Xdefaults" with the settings above and then start an xterm?
Here, for some reason, xterm didn't react to *foreground nor *background, but honored "*cursorColor". At the same time Xpdf reacted to *background though.
Hm, maybe you have xterm specific resources set somewhere in your system. I guess these would overwrite the wildcard ones. With "appres xterm" you can get all matching resources for "xterm".
Sometimes dillo changed its colors after a "xrdb -merge ~/.Xdefaults". Others a xserver restart was needed. In a nutshell, here, sometimes it works, and sometimes it doesn't.
Very strange. The X resources mechanism is quite old and normally works reliably.
That, and considering dillo running native in OSX, left me wondering why not just making theme-colors plain dillorc options. AFAIS it would work more reliably and in more platforms.
I strongly prefer to use the standard mechanism for theming on each platform. On X11 this is X resources. That way you can consistently theme all your applications (at least the well behaved ones) with just a few lines in a central file. Also I think it is a great advantage of X resources that they are stored server side. So even applictions that are running remotely will use the consistent set of colors. Nevertheless I agree that this theme code actually belongs in the fltk library. I can try to send a patch to the fltk list that reenables the currently commented out X resources code. Cheers, Johannes
participants (4)
-
akhilman@gmail.com
-
corvid@lavabit.com
-
jcid@dillo.org
-
Johannes.Hofmann@gmx.de