The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

New color theme

Changes made to libbirdfont/SpinButton.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/SpinButton.vala +++ libbirdfont/SpinButton.vala @@ -442,9 +442,15 @@ double xt = x + w / 2; double yt = y; - double text_x = -14 * scale; + double text_x = -13 * scale; double text_y = 7 * scale; Text text = new Text (get_short_display_value (), 15); + + if (is_selected ()) { + base.icon_color = "Active Spin Button"; + } else { + base.icon_color = "Spin Button"; + } base.draw (cr);