Editor Appearance Customization: Difference between revisions

From Bluefish Wiki
Jump to navigation Jump to search
m (Created page with '__NOTOC__ __NOEDITSECTION__ {{Man2top |lang=en |rev=2.0.0 |st=d |Title=4. Editor appearance |prev=Man 2 ch08s03 |Subtitle=Chapter VIII. Customising Bluefish |next=…')
 
mNo edit summary
Line 1: Line 1:
__NOTOC__
__NOEDITSECTION__
{{Man2top
{{Man2top
|lang=en
|lang=en
Line 10: Line 8:
|next=Man 2 ch08s05
|next=Man 2 ch08s05
}}
}}
== 4. Editor appearance ==
 
Most of the editor appearance depends on your GKT theme, which may be customized through the ~/.gtkrc-2.0 resource file.
Most of the editor appearance depends on your GKT theme, which may be customized through the ~/.gtkrc-2.0 resource file.


Line 22: Line 20:




[[File:Man2_warning.png]] You should not customize those files, instead customize ~/.gtkrc-2.0. If the file does not already exist in your home directory, just create it with: '''touch ~/.gtkrc-2.0'''
{{note|text=You should not customize those files, instead customize ~/.gtkrc-2.0. If the file does not already exist in your home directory, just create it with: <tt>'''$''' touch ~/.gtkrc-2.0</tt>}}


Here is an example made on a Crux theme:
Here is an example made on a Crux theme:
  style "bluefish"
  style "bluefish"
  {
  {
Line 31: Line 28:
   GtkNotebook::has_secondary_forward_stepper = 1
   GtkNotebook::has_secondary_forward_stepper = 1
   GtkNotebook::has_secondary_backward_stepper = 1
   GtkNotebook::has_secondary_backward_stepper = 1
 
   <nowiki># Editor background color </nowiki>
   <nowiki># Editor background color </nowiki>
   <nowiki># (background of editor view)</nowiki>
   <nowiki># (background of editor view)</nowiki>
   <nowiki>base[[Man 2 NORMAL]]="#fcfff5"</nowiki>
   <nowiki>base[[Man 1 NORMAL]]="#fcfff5"</nowiki>
 
   <nowiki># GUI normal background color</nowiki>
   <nowiki># GUI normal background color</nowiki>
   <nowiki># (most of the GUI)</nowiki>
   <nowiki># (most of the GUI)</nowiki>
   <nowiki>bg[[Man 2 NORMAL]]="#dbe9e9"</nowiki>
   <nowiki>bg[[Man 1 NORMAL]]="#dbe9e9"</nowiki>
 
   <nowiki># GUI highlighted background color</nowiki>
   <nowiki># GUI highlighted background color</nowiki>
   <nowiki>#(GUI when mouse over elements)</nowiki>
   <nowiki>#(GUI when mouse over elements)</nowiki>
   <nowiki>bg[[Man 2 PRELIGHT]]="#c6e9e9"</nowiki>
   <nowiki>bg[[Man 1 PRELIGHT]]="#c6e9e9"</nowiki>
 
   <nowiki># GUI unactive background color</nowiki>
   <nowiki># GUI unactive background color</nowiki>
   <nowiki>#(GUI disabled elements)</nowiki>
   <nowiki>#(GUI disabled elements)</nowiki>
   <nowiki>bg[[Man 2 INSENSITIVE]]="#9fb2b2"</nowiki>
   <nowiki>bg[[Man 1 INSENSITIVE]]="#9fb2b2"</nowiki>
 
   <nowiki># GUI active background color</nowiki>
   <nowiki># GUI active background color</nowiki>
   <nowiki>#(GUI enabled elements)</nowiki>
   <nowiki>#(GUI enabled elements)</nowiki>
   <nowiki>bg[[Man 2 ACTIVE]]="#c7d4d4"</nowiki>
   <nowiki>bg[[Man 1 ACTIVE]]="#c7d4d4"</nowiki>
  }
  }
  class "GtkWidget" style "bluefish"
  class "GtkWidget" style "bluefish"


{{note|text=You may give any name to the style on the first line, provided that you use the same on the last line.}}


[[File:Man2_note.png]] You may give any name to the style on the first line, provided that you use the same on the last line.
{{note|text=The customization applies to any Gtk application.}}
 
[[File:Man2_note.png]]The customization applies to any Gtk application.
 


It will give this appearance to bluefish:  
It will give this appearance to bluefish:  


[[File:Man2_gui_appearance.png|none|frame|Bluefish with a customized Gtk Theme]]
[[File:Man1_gui_appearance.png|none|frame|Bluefish with a customized Gtk Theme]]


Other options for the Editor are available in the Editor tab of the Edit preferences panel accessible via the Edit preferences... button in the main tool bar. In particular you may want to customize the font of the editor, the end of line wrapping, and the undo history size:  
Other options for the Editor are available in the Editor tab of the Edit preferences panel accessible via the Edit preferences... button in the main tool bar. In particular you may want to customize the font of the editor, the end of line wrapping, and the undo history size:  

Revision as of 13:18, 31 December 2009


Most of the editor appearance depends on your GKT theme, which may be customized through the ~/.gtkrc-2.0 resource file.

Parts that you may want to customize through that resource file are among others:

  • the background color of the editor
  • the colors of GUI elements
  • the position of arrows in a drop down list

You will find examples of themes resource files while searching for a gtkrc file in a gtk-2.0 folder within the various directories under $prefix/share/themes/, where $prefix is your installation prefix (it may be /usr, /usr/local, /sw, /opt, etc.).


Man2 note.gif You should not customize those files, instead customize ~/.gtkrc-2.0. If the file does not already exist in your home directory, just create it with: $ touch ~/.gtkrc-2.0

Here is an example made on a Crux theme:

style "bluefish"
{
 # For up and down arrows grouped together at right side
 GtkNotebook::has_secondary_forward_stepper = 1
 GtkNotebook::has_secondary_backward_stepper = 1

 # Editor background color 
 # (background of editor view)
 base[[Man 1 NORMAL]]="#fcfff5"

 # GUI normal background color
 # (most of the GUI)
 bg[[Man 1 NORMAL]]="#dbe9e9"

 # GUI highlighted background color
 #(GUI when mouse over elements)
 bg[[Man 1 PRELIGHT]]="#c6e9e9"

 # GUI unactive background color
 #(GUI disabled elements)
 bg[[Man 1 INSENSITIVE]]="#9fb2b2"

 # GUI active background color
 #(GUI enabled elements)
 bg[[Man 1 ACTIVE]]="#c7d4d4"
}
class "GtkWidget" style "bluefish"
Man2 note.gif You may give any name to the style on the first line, provided that you use the same on the last line.
Man2 note.gif The customization applies to any Gtk application.

It will give this appearance to bluefish:

Bluefish with a customized Gtk Theme

Other options for the Editor are available in the Editor tab of the Edit preferences panel accessible via the Edit preferences... button in the main tool bar. In particular you may want to customize the font of the editor, the end of line wrapping, and the undo history size:

File:Man2 prefs editor tab.png
The Editor Tab in Preferences