Re: [Zim-wiki] Changing TextView style
On Mon, May 30, 2011 at 19:40, Jaap Karssenberg wrote: > Check the gtk API documentation (http://www.pygtk.org/docs/pygtk/), for each > widget there are "style properties" which can be set from the gtkrc. Some > global settings are documented here: > http://www.pygtk.org/docs/pygtk/class-gtkrcstyle.html . > > I'm not a theme writer and not sure if anybody here is; for detailed > questions on customizing look of widgets I would look for a forum dedicated > to that topic. > Thanks. If I turn up anything I'll post it here for the sake of the fine archives. -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] Changing TextView style
On Mon, May 30, 2011 at 4:58 PM, Dotan Cohen wrote: > On Mon, May 30, 2011 at 17:51, Jaap Karssenberg > wrote: > > This is exactly what the gtkrc is for, doesn't make sense to keep > different > > rc files for different programs. > > > > To make a change for zim specific you can use the widget name of the zim > > textview, see http://www.zim-wiki.org/manual/Help/Config_Files.html for > > details. > > > > Thanks. I have a ~/.gtkrc-2.0-kde4 file. I hope that KDE4 won't > overwrite it someday! > > Am I correct in assuming that I should use this type of declaration > for configuring the TextView style: > style "zim-pageview-style" > { > > } > Widget "*.zim-pageview" style "zim-pageview-style" > > I would test it myself, but in consulting the internet I cannot find > what to put in there in order to indent the text by 50 pixels. What > should that be? > Check the gtk API documentation (http://www.pygtk.org/docs/pygtk/), for each widget there are "style properties" which can be set from the gtkrc. Some global settings are documented here: http://www.pygtk.org/docs/pygtk/class-gtkrcstyle.html . I'm not a theme writer and not sure if anybody here is; for detailed questions on customizing look of widgets I would look for a forum dedicated to that topic. Regards, Jaap ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] Changing TextView style
Additionally, is there any way to remove the 10px margin on the sides of the TextView area? -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] Changing TextView style
On Mon, May 30, 2011 at 17:51, Jaap Karssenberg wrote: > This is exactly what the gtkrc is for, doesn't make sense to keep different > rc files for different programs. > > To make a change for zim specific you can use the widget name of the zim > textview, see http://www.zim-wiki.org/manual/Help/Config_Files.html for > details. > Thanks. I have a ~/.gtkrc-2.0-kde4 file. I hope that KDE4 won't overwrite it someday! Am I correct in assuming that I should use this type of declaration for configuring the TextView style: style "zim-pageview-style" { } Widget "*.zim-pageview" style "zim-pageview-style" I would test it myself, but in consulting the internet I cannot find what to put in there in order to indent the text by 50 pixels. What should that be? Thanks! -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] Changing TextView style
On Mon, May 30, 2011 at 4:29 PM, Dotan Cohen wrote: > Is there any way to override the gtkrc file that Zim uses? I would > really like to change the TextView style, but making the change in > gtkrc doesn't make sense as the change is only appropriate for Zim. > This is exactly what the gtkrc is for, doesn't make sense to keep different rc files for different programs. To make a change for zim specific you can use the widget name of the zim textview, see http://www.zim-wiki.org/manual/Help/Config_Files.html for details. Regards, Jaap ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
[Zim-wiki] Changing TextView style
Is there any way to override the gtkrc file that Zim uses? I would really like to change the TextView style, but making the change in gtkrc doesn't make sense as the change is only appropriate for Zim. Thanks. -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp