[gnome-builder] perspectives: fix styling in perspective switcher for RTL
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] perspectives: fix styling in perspective switcher for RTL
- Date: Mon, 10 Oct 2016 20:26:54 +0000 (UTC)
commit 5e4e6bec7d7158d64c2ce8946baf53f093c9ede6
Author: Christian Hergert <chergert redhat com>
Date: Mon Oct 10 13:25:25 2016 -0700
perspectives: fix styling in perspective switcher for RTL
This improves the padding for RTL to match that of LTR.
https://bugzilla.gnome.org/show_bug.cgi?id=772702
data/theme/Adwaita-shared.css | 12 ++++++++++++
libide/workbench/ide-perspective-menu-button.c | 2 +-
2 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/data/theme/Adwaita-shared.css b/data/theme/Adwaita-shared.css
index a55a7f6..f55421b 100644
--- a/data/theme/Adwaita-shared.css
+++ b/data/theme/Adwaita-shared.css
@@ -145,6 +145,18 @@ popover.popover-selector list row image {
min-width: 16px;
margin-right: 12px;
}
+popover.popover-selector list row image:dir(rtl) {
+ margin-right: 0px;
+ margin-left: 12px;
+}
+popover.popover-selector list row .accel {
+ margin-left: 20px;
+ margin-right: 0;
+}
+popover.popover-selector list row .accel:dir(rtl) {
+ margin-left: 0;
+ margin-right: 20px;
+}
omnibar entry {
diff --git a/libide/workbench/ide-perspective-menu-button.c b/libide/workbench/ide-perspective-menu-button.c
index bdddd4b..7b8d86a 100644
--- a/libide/workbench/ide-perspective-menu-button.c
+++ b/libide/workbench/ide-perspective-menu-button.c
@@ -114,11 +114,11 @@ ide_perspective_menu_button_create_row (IdePerspectiveMenuButton *self,
xaccel = gtk_accelerator_get_label (accel_key, accel_mod);
label = g_object_new (GTK_TYPE_LABEL,
"label", xaccel,
- "margin-start", 20,
"visible", TRUE,
"xalign", 0.0f,
NULL);
ide_widget_add_style_class (GTK_WIDGET (label), "dim-label");
+ ide_widget_add_style_class (GTK_WIDGET (label), "accel");
gtk_container_add_with_properties (GTK_CONTAINER (box), GTK_WIDGET (label),
"pack-type", GTK_PACK_END,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]