The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Foreground color in tables and events for spin buttons in settings tab

These changes was commited to the Birdfont repository Tue, 17 Mar 2015 14:07:07 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
author Johan Mattsson <johan.mattsson.m@gmail.com>
Tue, 17 Mar 2015 14:07:07 +0000 (15:07 +0100)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Tue, 17 Mar 2015 14:20:21 +0000 (15:20 +0100)
commit 31ecbc4883e83b5b1478b4ddd5257c2190d879ab
tree fbcc7eed7a23e462e6b1252a81f4b0d01c3da714
parent 02dd560f317e2ae78692bbf338edc70776e40abc
Foreground color in tables and events for spin buttons in settings tab

libbirdfont/KerningList.vala
libbirdfont/SettingsDisplay.vala
libbirdfont/TabBar.vala
libbirdfont/Table.vala
--- a/libbirdfont/KerningList.vala +++ b/libbirdfont/KerningList.vala @@ -105,6 +105,7 @@ // remove kerning icon cr.save (); + Theme.color (cr, "Foreground 1"); cr.set_line_width (1); cr.move_to (10, y - 8); cr.line_to (15, y - 3); @@ -113,6 +114,7 @@ cr.stroke (); cr.restore (); + Theme.color (cr, "Foreground 1"); cr.move_to (60, y); cr.show_text (left); cr.move_to (230, y);
--- a/libbirdfont/SettingsDisplay.vala +++ b/libbirdfont/SettingsDisplay.vala @@ -1,5 +1,5 @@ /* - Copyright (C) 2014 Johan Mattsson + Copyright (C) 2014 2015 Johan Mattsson This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as @@ -344,6 +344,8 @@ if (((!) s.button).is_over (x, y) || ((!) s.button).is_active ()) { ((!) s.button).panel_release_action ((!) s.button, button, x, y); } + + ((!) s.button).panel_release_action (((!) s.button), button, x, y); } if (s.key_bindings && s.y <= y < s.y + 40 * MainWindow.units && button == 1) {
--- a/libbirdfont/TabBar.vala +++ b/libbirdfont/TabBar.vala @@ -730,7 +730,7 @@ } if (has_scroll ()) { - tabs_end -= 32 / scale; + tabs_end -= 60 / scale; offset = 24 / scale; } else { offset = 0;
--- a/libbirdfont/Table.vala +++ b/libbirdfont/Table.vala @@ -78,6 +78,7 @@ if (row.has_delete_button ()) { cr.save (); + Theme.color (cr, "Foreground 1"); cr.set_line_width (1); cr.move_to (10 * MainWindow.units, y - 8 * MainWindow.units); cr.line_to (15 * MainWindow.units, y - 3 * MainWindow.units); @@ -89,6 +90,7 @@ for (int i = 0; i < row.columns; i++) { cr.save (); + Theme.color (cr, "Foreground 1"); margin = (row.has_delete_button ()) ? 120 * MainWindow.units : 3* MainWindow.units; cr.move_to (margin + i * 120 * MainWindow.units, y); cr.set_font_size (12 * MainWindow.units);