[gnome-software/wip/aday/text-styles] updates



commit 113071087dfe058bef5d265c943655a8c158ccd2
Author: Allan Day <allanpday gmail com>
Date:   Thu May 30 11:59:33 2019 +0100

    updates

 src/gs-app-row.ui            |  4 ++--
 src/gs-app-tile.ui           |  2 +-
 src/gs-category-page.ui      |  2 +-
 src/gs-details-page.ui       |  8 ++++----
 src/gs-installed-page.c      |  2 +-
 src/gs-origin-popover-row.ui | 12 ++++++------
 src/gs-overview-page.ui      |  8 ++++----
 src/gs-review-row.ui         |  2 +-
 src/gs-summary-tile.ui       |  8 +-------
 src/gs-update-dialog.c       |  2 +-
 src/gs-update-dialog.ui      |  4 ++--
 src/gs-updates-section.c     |  2 +-
 src/gs-upgrade-banner.ui     |  4 ++--
 src/gtk-style-hc.css         |  4 ----
 14 files changed, 27 insertions(+), 37 deletions(-)
---
diff --git a/src/gs-app-row.ui b/src/gs-app-row.ui
index ee476c03..e763071c 100644
--- a/src/gs-app-row.ui
+++ b/src/gs-app-row.ui
@@ -48,7 +48,7 @@
                 <property name="lines">3</property>
                 <property name="wrap-mode">word-char</property>
                 <style>
-                  <class name="type-heading"/>
+                  <class name="heading"/>
                 </style>
               </object>
             </child>
@@ -150,7 +150,7 @@
                         <property name="hexpand">True</property>
                         <property name="ellipsize">end</property>
                         <style>
-                          <class name="type-caption"/>
+                          <class name="caption"/>
                           <class name="dim-label"/>
                         </style>
                       </object>
diff --git a/src/gs-app-tile.ui b/src/gs-app-tile.ui
index dd9f7d9a..7d1dd32d 100644
--- a/src/gs-app-tile.ui
+++ b/src/gs-app-tile.ui
@@ -88,7 +88,7 @@
                     <property name="ellipsize">end</property>
                     <property name="xalign">0.0</property>
                     <style>
-                      <class name="type-heading"/>
+                      <class name="heading"/>
                     </style>
                   </object>
                   <packing>
diff --git a/src/gs-category-page.ui b/src/gs-category-page.ui
index 09fa04df..d7282bf1 100644
--- a/src/gs-category-page.ui
+++ b/src/gs-category-page.ui
@@ -85,7 +85,7 @@
                                   <relation target="featured_grid" type="label-for"/>
                                 </accessibility>
                                 <style>
-                                  <class name="type-title-1"/>
+                                  <class name="title-3"/>
                                 </style>
                               </object>
                             </child>
diff --git a/src/gs-details-page.ui b/src/gs-details-page.ui
index 3cc41ecb..c888a209 100644
--- a/src/gs-details-page.ui
+++ b/src/gs-details-page.ui
@@ -99,7 +99,7 @@
                                     <property name="wrap">True</property>
                                     <property name="max_width_chars">20</property>
                                     <style>
-                                      <class name="type-title-1"/>
+                                      <class name="title-3"/>
                                     </style>
                                   </object>
                                 </child>
@@ -434,7 +434,7 @@
                             <property name="xalign">0</property>
                             <property name="label" translatable="yes">Details</property>
                             <style>
-                              <class name="type-title-2"/>
+                              <class name="title-5"/>
                             </style>
                           </object>
                         </child>
@@ -993,7 +993,7 @@
                                     <property name="xalign">0</property>
                                     <property name="label" translatable="yes">Add-ons</property>
                                     <style>
-                                      <class name="type-title-2"/>
+                                      <class name="title-5"/>
                                     </style>
                                   </object>
                                 </child>
@@ -1043,7 +1043,7 @@
                                 <property name="xalign">0</property>
                                 <property name="label" translatable="yes" comments="Translators: Header of 
the section with other users&apos; opinions about the app.">Reviews</property>
                                 <style>
-                                  <class name="type-title-2"/>
+                                  <class name="title-5"/>
                                 </style>
                               </object>
                             </child>
diff --git a/src/gs-installed-page.c b/src/gs-installed-page.c
index 9321d944..42325edd 100644
--- a/src/gs-installed-page.c
+++ b/src/gs-installed-page.c
@@ -483,7 +483,7 @@ gs_installed_page_get_section_header (GsInstalledPageSection section)
                GtkStyleContext *context = gtk_widget_get_style_context (header);
                gtk_label_set_xalign (GTK_LABEL (header), 0.0);
                gtk_style_context_add_class (context, "app-listbox-header");
-               gtk_style_context_add_class (context, "type-heading");
+               gtk_style_context_add_class (context, "heading");
        }
        return header;
 }
diff --git a/src/gs-origin-popover-row.ui b/src/gs-origin-popover-row.ui
index 321f508b..43127624 100644
--- a/src/gs-origin-popover-row.ui
+++ b/src/gs-origin-popover-row.ui
@@ -34,7 +34,7 @@
                     <property name="xalign">0</property>
                     <property name="label" translatable="yes">URL</property>
                     <style>
-                      <class name="type-caption"/>
+                      <class name="caption"/>
                       <class name="dim-label"/>
                     </style>
                   </object>
@@ -45,7 +45,7 @@
                     <property name="halign">start</property>
                     <property name="ellipsize">end</property>
                     <style>
-                      <class name="type-caption"/>
+                      <class name="caption"/>
                     </style>
                   </object>
                 </child>
@@ -63,7 +63,7 @@
                     <property name="xalign">0</property>
                     <property name="label" translatable="yes" comments="Translators: The packaging format of 
the app being installed, e.g. 'RPM' or 'Flatpak'">Format</property>
                     <style>
-                      <class name="type-caption"/>
+                      <class name="caption"/>
                       <class name="dim-label"/>
                     </style>
                   </object>
@@ -74,7 +74,7 @@
                     <property name="halign">start</property>
                     <property name="ellipsize">end</property>
                     <style>
-                      <class name="type-caption"/>
+                      <class name="caption"/>
                     </style>
                   </object>
                 </child>
@@ -92,7 +92,7 @@
                     <property name="xalign">0</property>
                     <property name="label" translatable="yes" comments="Translators: The installation 
location for flatpaks, e.g. 'user' or 'system'">Installation</property>
                     <style>
-                      <class name="type-caption"/>
+                      <class name="caption"/>
                       <class name="dim-label"/>
                     </style>
                   </object>
@@ -103,7 +103,7 @@
                     <property name="halign">start</property>
                     <property name="ellipsize">end</property>
                     <style>
-                      <class name="type-caption"/>
+                      <class name="caption"/>
                     </style>
                   </object>
                 </child>
diff --git a/src/gs-overview-page.ui b/src/gs-overview-page.ui
index d3fb2ee8..e3d515f2 100644
--- a/src/gs-overview-page.ui
+++ b/src/gs-overview-page.ui
@@ -87,7 +87,7 @@
                               <relation target="flowbox_categories" type="label-for"/>
                             </accessibility>
                             <style>
-                              <class name="type-title-1"/>
+                              <class name="title-3"/>
                             </style>
                           </object>
                         </child>
@@ -120,7 +120,7 @@
                               <relation target="flowbox_categories" type="label-for"/>
                             </accessibility>
                             <style>
-                              <class name="type-title-1"/>
+                              <class name="title-3"/>
                             </style>
                           </object>
                         </child>
@@ -236,7 +236,7 @@
                               <relation target="box_popular" type="label-for"/>
                             </accessibility>
                             <style>
-                              <class name="type-title-1"/>
+                              <class name="title-3"/>
                             </style>
                           </object>
                         </child>
@@ -262,7 +262,7 @@
                               <relation target="box_recent" type="label-for"/>
                             </accessibility>
                             <style>
-                              <class name="type-title-1"/>
+                              <class name="title-3"/>
                             </style>
                           </object>
                         </child>
diff --git a/src/gs-review-row.ui b/src/gs-review-row.ui
index a314ad83..43e82f42 100644
--- a/src/gs-review-row.ui
+++ b/src/gs-review-row.ui
@@ -24,7 +24,7 @@
             <property name="hexpand">True</property>
             <property name="selectable">True</property>
             <style>
-              <class name="type-heading"/>
+              <class name="heading"/>
             </style>
           </object>
           <packing>
diff --git a/src/gs-summary-tile.ui b/src/gs-summary-tile.ui
index 0cb14cab..af58055c 100644
--- a/src/gs-summary-tile.ui
+++ b/src/gs-summary-tile.ui
@@ -86,11 +86,8 @@
                     <property name="visible">True</property>
                     <property name="ellipsize">end</property>
                     <property name="xalign">0.0</property>
-                    <attributes>
-                      <attribute name="weight" value="bold"/>
-                    </attributes>
                     <style>
-                      <class name="app-tile-label"/>
+                      <class name="heading"/>
                     </style>
                   </object>
                   <packing>
@@ -109,9 +106,6 @@
                     <property name="lines">2</property>
                     <property name="vexpand">True</property>
                     <property name="single-line-mode">True</property>
-                    <style>
-                      <class name="app-tile-label"/>
-                    </style>
                   </object>
                   <packing>
                     <property name="left-attach">1</property>
diff --git a/src/gs-update-dialog.c b/src/gs-update-dialog.c
index 69c814ff..ab9457c7 100644
--- a/src/gs-update-dialog.c
+++ b/src/gs-update-dialog.c
@@ -552,7 +552,7 @@ get_section_header (GsUpdateDialog *dialog, GsUpdateDialogSection section)
        gtk_widget_set_margin_start (label, 6);
        gtk_label_set_xalign (GTK_LABEL (label), 0.0);
        context = gtk_widget_get_style_context (label);
-       gtk_style_context_add_class (context, "text-title-1");
+       gtk_style_context_add_class (context, "title-4");
 
        /* success */
        return header;
diff --git a/src/gs-update-dialog.ui b/src/gs-update-dialog.ui
index b88e9b2b..ebe07e0e 100644
--- a/src/gs-update-dialog.ui
+++ b/src/gs-update-dialog.ui
@@ -146,7 +146,7 @@
                             <property name="max_width_chars">50</property>
                             <property name="width_chars">50</property>
                             <style>
-                              <class name="type-title-1"/>
+                              <class name="title-3"/>
                             </style>
                           </object>
                         </child>
@@ -160,7 +160,7 @@
                             <property name="max_width_chars">50</property>
                             <property name="width_chars">50</property>
                             <style>
-                              <class name="type-caption"/>
+                              <class name="caption"/>
                             </style>
                           </object>
                         </child>
diff --git a/src/gs-updates-section.c b/src/gs-updates-section.c
index 93f3b6c3..94550b39 100644
--- a/src/gs-updates-section.c
+++ b/src/gs-updates-section.c
@@ -448,7 +448,7 @@ _build_section_header (GsUpdatesSection *self)
        gtk_label_set_xalign (GTK_LABEL (label), 0.0);
        context = gtk_widget_get_style_context (label);
        gtk_style_context_add_class (context, "app-listbox-header-title");
-       gtk_style_context_add_class (context, "type-heading");
+       gtk_style_context_add_class (context, "heading");
 
        /* use a stack so we can switch which buttons are showing without the
         * sizegroup resizing */
diff --git a/src/gs-upgrade-banner.ui b/src/gs-upgrade-banner.ui
index 5cf408b3..05ee75fc 100644
--- a/src/gs-upgrade-banner.ui
+++ b/src/gs-upgrade-banner.ui
@@ -20,7 +20,7 @@
             <!-- Just a placeholder; actual label text is set in code -->
             <property name="label">GNOME 3.20 Now Available</property>
             <style>
-              <class name="type-large-title"/>
+              <class name="large-title"/>
             </style>
           </object>
         </child>
@@ -29,7 +29,7 @@
             <property name="visible">True</property>
             <property name="label" translatable="yes">A major upgrade, with new features and added 
polish.</property>
             <style>
-              <class name="type-title-2"/>
+              <class name="title-4"/>
             </style>
           </object>
         </child>
diff --git a/src/gtk-style-hc.css b/src/gtk-style-hc.css
index a51c05e7..0b8a8d4f 100644
--- a/src/gtk-style-hc.css
+++ b/src/gtk-style-hc.css
@@ -35,10 +35,6 @@
 .screenshot-image { border-radius: 5px; }
 .screenshot-image-thumb { border-radius: 3px; }
 
-.app-tile-label {
-       font-size: 105%;
-}
-
 .app-row-tag {
        text-shadow: none;
        color: white;


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