The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Dialog shadow

These changes was commited to the Birdfont repository Tue, 17 Mar 2015 21:26:58 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Tue, 17 Mar 2015 21:26:58 +0000]

Updated Files

libbirdfont/SaveDialog.vala
libbirdfont/Theme.vala
resources/default.theme
resources/high_contrast.theme
--- a/libbirdfont/SaveDialog.vala +++ b/libbirdfont/SaveDialog.vala @@ -100,7 +100,7 @@ cy = (allocation.height - height) / 2.0; cr.save (); - Theme.color_opacity (cr, "Foreground 1", 0.3); + Theme.color (cr, "Dialog Shadow"); cr.rectangle (0, 0, allocation.width, allocation.height); cr.fill (); cr.restore ();
--- a/libbirdfont/Theme.vala +++ b/libbirdfont/Theme.vala @@ -168,6 +168,9 @@ Theme.set_default_color ("Overview Foreground", 45 / 255.0, 45 / 255.0, 45 / 255.0, 1); Theme.set_default_color ("Glyph Count Background", 101 / 255.0, 108 / 255.0, 116 / 255.0, 1); + + Theme.set_default_color ("Dialog Shadow", 0, 0, 0, 0.3); + if (BirdFont.has_argument ("--test")) { current_theme = "generated_theme.theme"; @@ -233,6 +236,8 @@ t_("Overview Foreground"); t_("Glyph Count Background"); + + t_("Dialog Shadow"); } }
--- a/resources/default.theme +++ b/resources/default.theme @@ -12,7 +12,9 @@ <color name="Background 3" red="0.14901960784313725" green="0.15294117647058825" blue="0.16862745098039217" alpha="1"/> <color name="Selected Overview Item 2" red="0.89803921568627454" green="0.89803921568627454" blue="0.89803921568627454" alpha="1"/> <color name="Background 4" red="0.20000000000000001" green="0.21176470588235294" blue="0.23137254901960785" alpha="1"/> + <color name="Dialog Shadow" red="0" green="0" blue="0" alpha="0.29999999999999999"/> <color name="Background 5" red="0.29999999999999999" green="0.29999999999999999" blue="0.29999999999999999" alpha="1"/> + <color name="Glyph Count Background" red="0.396078431372549" green="0.42352941176470588" blue="0.45490196078431372" alpha="1"/> <color name="Background 6" red="0.8784313725490196" green="0.8784313725490196" blue="0.8784313725490196" alpha="1"/> <color name="Background 7" red="0.2196078431372549" green="0.23137254901960785" blue="0.25490196078431371" alpha="1"/> <color name="Background 8" red="0.21568627450980393" green="0.21568627450980393" blue="0.21568627450980393" alpha="1"/>
--- a/resources/high_contrast.theme +++ b/resources/high_contrast.theme @@ -5,13 +5,14 @@ <color name="Foreground 6" red="0" green="0" blue="0" alpha="1"/> <color name="Background 1" red="1" green="1" blue="1" alpha="1"/> <color name="Guide 2" red="0" green="0" blue="0" alpha="1"/> - <color name="Foreground 7" red="0" green="0" blue="0" alpha="1"/> + <color name="Foreground 7" red="1" green="1" blue="1" alpha="1"/> <color name="Background 2" red="0" green="0" blue="0" alpha="1"/> <color name="Guide 3" red="0" green="0" blue="0" alpha="1"/> <color name="Selected Overview Item 1" red="0" green="0" blue="0" alpha="1"/> <color name="Background 3" red="0" green="0" blue="0" alpha="1"/> <color name="Selected Overview Item 2" red="0" green="0" blue="0" alpha="1"/> <color name="Background 4" red="1" green="1" blue="1" alpha="1"/> + <color name="Dialog Shadow" red="0" green="0" blue="0" alpha="1"/> <color name="Background 5" red="1" green="1" blue="1" alpha="1"/> <color name="Glyph Count Background" red="1" green="1" blue="1" alpha="1"/> <color name="Background 6" red="1" green="1" blue="1" alpha="1"/>