[gnome-software] trivial: Make the 'More...' button smaller and move towards the content
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Make the 'More...' button smaller and move towards the content
- Date: Thu, 14 Jul 2016 15:52:27 +0000 (UTC)
commit 28cfc2bca0f42e35f5f7618f08173f18f1ade66b
Author: Richard Hughes <richard hughsie com>
Date: Thu Jul 14 16:52:02 2016 +0100
trivial: Make the 'More...' button smaller and move towards the content
src/gs-shell-overview.c | 5 ++++-
src/gtk-style.css | 5 +++++
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell-overview.c b/src/gs-shell-overview.c
index f0a22dc..32df57e 100644
--- a/src/gs-shell-overview.c
+++ b/src/gs-shell-overview.c
@@ -238,11 +238,14 @@ gs_shell_overview_get_category_apps_cb (GObject *source_object,
/* add button */
button = gtk_button_new_with_label (_("Moreā¦"));
+ gtk_style_context_add_class (gtk_widget_get_style_context (button),
+ "overview-more-button");
g_object_set_data_full (G_OBJECT (button), "GnomeSoftware::CategoryId",
g_strdup (gs_category_get_id (load_data->category)),
g_free);
gtk_widget_set_visible (button, TRUE);
- gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
+ gtk_widget_set_valign (button, GTK_ALIGN_END);
+ gtk_widget_set_margin_bottom (button, 9);
g_signal_connect (button, "clicked",
G_CALLBACK (gs_shell_overview_category_more_cb), self);
gtk_container_add (GTK_CONTAINER (headerbox), button);
diff --git a/src/gtk-style.css b/src/gtk-style.css
index 94582e7..3ca31f6 100644
--- a/src/gtk-style.css
+++ b/src/gtk-style.css
@@ -267,6 +267,11 @@
color: white;
}
+.overview-more-button {
+ font-size: smaller;
+ padding: 0px 15px;
+}
+
.app-row-origin-text {
font-size: smaller;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]