Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions data/styles/HomePage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,24 +51,6 @@ homepage {
margin-right: -12px; /*Offset space inside icon*/;
}

> box {
border-spacing: rem(24px);
}

label.name {
font-size: 3rem;
font-weight: 700;
letter-spacing: -0.04em;
margin-bottom: -0.1em;
}

label.summary {
font-size: 1.25rem;
font-weight: 400;
letter-spacing: -0.035em;
margin-bottom: 0.75em;
}

label.description {
font-size: 0.95rem;
opacity: 0.85;
Expand Down
24 changes: 6 additions & 18 deletions src/Widgets/Banner.vala
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,10 @@ public class AppCenter.Widgets.Banner : Gtk.Button {
}

construct {
var name_label = new Gtk.Label (app_name) {
max_width_chars = 50,
use_markup = true,
wrap = true,
xalign = 0
};
name_label.add_css_class ("name");

var summary_label = new Gtk.Label (summary) {
max_width_chars = 50,
use_markup = true,
wrap = true,
xalign = 0
var header = new Granite.HeaderLabel (app_name) {
secondary_text = summary,
size = H1
};
summary_label.add_css_class ("summary");

if (description != null && description != "") {
// We only want the first line/paragraph
Expand All @@ -74,14 +63,13 @@ public class AppCenter.Widgets.Banner : Gtk.Button {
};
description_label.add_css_class ("description");

var inner_box = new Gtk.Box (VERTICAL, 0) {
var inner_box = new Granite.Box (VERTICAL, SINGLE) {
valign = CENTER
};
inner_box.append (name_label);
inner_box.append (summary_label);
inner_box.append (header);
inner_box.append (description_label);

var outer_box = new Gtk.Box (HORIZONTAL, 0) {
var outer_box = new Granite.Box (HORIZONTAL, DOUBLE) {
halign = CENTER
};
outer_box.append (app_icon);
Expand Down