quick hack to lighten up font scale slider tick-marks
authorRobin Gareus <robin@gareus.org>
Sun, 28 Dec 2014 22:42:04 +0000 (23:42 +0100)
committerRobin Gareus <robin@gareus.org>
Sun, 28 Dec 2014 23:05:58 +0000 (00:05 +0100)
gtk2_ardour/clearlooks.rc.in
gtk2_ardour/rc_option_editor.cc

index 68f3cc64b5c6e110dfec0d0f5511aa3943bf3c29..cef1eaa35dfcf21c1b5f1216592a50dadd9ddc5e 100644 (file)
@@ -501,6 +501,14 @@ style "option_entry"  = "default"
 
 }
 
+style "font_scale_slider" = "default"
+{
+  # scale-marks are based on style->dark/light,
+       # which cannot be specified directly in the gtkrc.
+       # this is a quick hack to increase visibility of the marks
+  bg[NORMAL] = shade(1.4, @background)
+}
+
 style "very_small_bright_when_active" = "very_small_text"
 {
        fg[NORMAL] = @foreground
@@ -1031,6 +1039,7 @@ widget "*AddRouteDialogSpinner" style:highest "ardour_adjusters"
 widget "*OptionsNotebook" style:highest "preferences"
 widget "*OptionsLabel" style:highest "preferences"
 widget "*OptionsEntry" style:highest "option_entry"
+widget "*FontScaleSlider" style:highest "font_scale_slider"
 widget "*InspectorNotebook" style:highest "preferences"
 widget "*EditorRulerLabel*" style:highest "ruler_label"
 widget "*MixerAutomationModeButton*" style:highest "very_small_button"
index bf2669def95370b1ca75e0919162b953287e0e8f..f845273d951014c59f4a602dd057ffe9d6685276 100644 (file)
@@ -543,6 +543,8 @@ public:
 
                 const Glib::ustring dflt = _("Default");
                 const Glib::ustring empty = X_(""); // despite gtk-doc saying so, NULL does not work as reference
+
+               _dpi_slider.set_name("FontScaleSlider");
                _dpi_slider.set_update_policy (UPDATE_DISCONTINUOUS);
                _dpi_slider.set_draw_value(false);
                _dpi_slider.add_mark(50,  Gtk::POS_TOP, empty);