[gtk+] theme: Specify the weight, not the font, for header bar titles



commit 80f4dffa76041060a10270751ad96c78b57e2b68
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Aug 28 11:17:10 2014 +0100

    theme: Specify the weight, not the font, for header bar titles
    
    Using `font: Bold` will override the font with whatever the system
    resolves a `Bold` font name to, including the font's own default size.
    
    We want the font weight to be bold, but we want the default font name
    and size to come from the GtkSettings:font-name property, like we do for
    the rest of the system.

 gtk/resources/theme/Adwaita/_common.scss           |    2 +-
 gtk/resources/theme/Adwaita/gtk-contained-dark.css |    2 +-
 gtk/resources/theme/Adwaita/gtk-contained.css      |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss
index d8cfbcd..8a54ca5 100644
--- a/gtk/resources/theme/Adwaita/_common.scss
+++ b/gtk/resources/theme/Adwaita/_common.scss
@@ -946,7 +946,7 @@ GtkComboBox {
   }
 
   .title {
-    font: Bold;
+    font-weight: bold;
     padding: 0px 12px;
   }
   .subtitle {
diff --git a/gtk/resources/theme/Adwaita/gtk-contained-dark.css 
b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
index 6aeb40c..3b3c172 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
@@ -1134,7 +1134,7 @@ GtkComboBox {
     box-shadow: inset 0 1px rgba(238, 238, 236, 0.1); }
   .titlebar .title, GtkCalendar.header .title,
   .header-bar .title {
-    font: Bold;
+    font-weight: bold;
     padding: 0px 12px; }
   .titlebar .subtitle, GtkCalendar.header .subtitle,
   .header-bar .subtitle {
diff --git a/gtk/resources/theme/Adwaita/gtk-contained.css b/gtk/resources/theme/Adwaita/gtk-contained.css
index c8d6e09..b852e0f 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained.css
@@ -1126,7 +1126,7 @@ GtkComboBox {
     box-shadow: inset 0 1px white; }
   .titlebar .title, GtkCalendar.header .title,
   .header-bar .title {
-    font: Bold;
+    font-weight: bold;
     padding: 0px 12px; }
   .titlebar .subtitle, GtkCalendar.header .subtitle,
   .header-bar .subtitle {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]