@@ -33,7 +33,6 @@ public class AppCenter.Views.AppInfoView : Adw.NavigationPage {
3333 private GLib . ListStore origin_liststore;
3434 private Gtk . CssProvider accent_provider;
3535 private Gtk . DropDown origin_dropdown;
36- private Gtk . Label app_subtitle;
3736 private Gtk . Overlay screenshot_overlay;
3837 private Adw . Carousel screenshot_carousel;
3938 private Adw . Clamp screenshot_not_found_clamp;
@@ -140,24 +139,10 @@ public class AppCenter.Views.AppInfoView : Adw.NavigationPage {
140139 package = package
141140 };
142141
143- var app_title = new Gtk .Label (package. name) {
144- can_focus = false ,
145- selectable = true ,
146- wrap = true ,
147- xalign = 0
148- };
149- app_title.add_css_class (Granite .STYLE_CLASS_H1_LABEL );
150-
151- app_subtitle = new Gtk .Label (null ) {
152- can_focus = false ,
153- label = package.get_summary (),
154- selectable = true,
155- wrap = true,
156- wrap_mode = Pango.WrapMode.WORD_CHAR,
157- xalign = 0
142+ var app_title = new Granite .HeaderLabel (package. name) {
143+ secondary_text = package.get_summary (),
144+ size = H1
158145 };
159- app_subtitle.add_css_class (Granite .STYLE_CLASS_H3_LABEL );
160- app_subtitle.add_css_class (Granite .CssClass .DIM );
161146
162147 origin_liststore = new GLib .ListStore (typeof (AppCenterCore . Package ));
163148
@@ -184,8 +169,7 @@ public class AppCenter.Views.AppInfoView : Adw.NavigationPage {
184169 column_spacing = 12 ,
185170 valign = Gtk . Align . CENTER
186171 };
187- header_grid.attach (app_title , 0 , 0 );
188- header_grid.attach (app_subtitle , 0 , 1 , 2 );
172+ header_grid.attach (app_title , 0 , 0 , 1 , 2 );
189173 header_grid.attach (origin_dropdown , 0 , 2 , 2 );
190174
191175 if (!package .is_local ) {
0 commit comments