[[HomePage]] > [[SoftwareIndex|Software Index]] > [[SoftwareDevelopment|Development]] > [[gtkdialog|gtkdialog]] > [[gtkdialogDocTips|Tips and Tricks]] ====9.10 Define unique gtk-theme==== Sometimes it is nice to change the gtktheme just for my app. Like this I get more options for my gtkdialog script. **Mono font** Gtkdialog does not support monospace in the #### widget, but I can make it work by adding a unique gtk-theme only for my app. The best way to this is to add my new gtk-theme on top of the already existing. Now my gtk-theme can hold ONLY information about monospace, else it will use gtk-settings specified by user. By giving the text-widget a name (see example), it is possible to have a gtk-theme for only this unique text string. This also works for text in widgets like ####. %%(language-ref) echo 'style "specialmono" { font_name="Mono 12" } widget "*mono" style "specialmono" class "GtkText*" style "specialmono"' > /tmp/gtkrc_mono export GTK2_RC_FILES=/tmp/gtkrc_mono:/root/.gtkrc-2.0 export test_app=" All edit-widgets gets monospace. " gtkdialog --program=test_app %% **Color all backgrounds** How to control background color of different widgets. [[https://forum.puppylinux.com/viewtopic.php?f=53&t=673 Forum Q/A:]] %%(language-ref) echo 'style "specialbg" { bg[NORMAL]="#FF0" base[NORMAL]="#FF0" } widget "*bg" style "specialbg" class "GtkNotebook" style "specialbg" class "GtkViewport" style "specialbg"' > /tmp/gtkrc_bg export GTK2_RC_FILES=/tmp/gtkrc_bg:/root/.gtkrc-2.0 echo $' This edit widget has a yellow background ' | gtkdialog -s %% ===@@**#%[[gtkdialogDocTips9.9|❰❰❰ Previous]]#% #%[[gtkdialogDocTips|Index]]#% #%[[gtkdialogDocTips9.11|Next ❱❱❱]]#%**@@=== ---- ==Categories== CategoryGtkdialog