[gnome-shell] endSessionDialog: Simplify CSS padding handling
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] endSessionDialog: Simplify CSS padding handling
- Date: Wed, 19 Feb 2014 23:28:50 +0000 (UTC)
commit 5bec5fb6cbb2da2118c7b8ac14e2f83bd872af5b
Author: Kalev Lember <kalevlember gmail com>
Date: Tue Feb 18 21:49:33 2014 +0100
endSessionDialog: Simplify CSS padding handling
... so that we add more items to messageLayout without having to
hardcode the same padding in each of the children.
https://bugzilla.gnome.org/show_bug.cgi?id=722898
data/theme/gnome-shell.css | 10 +++++-----
js/ui/endSessionDialog.js | 3 ++-
2 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index 0f0df57..0992169 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -1948,22 +1948,22 @@ StScrollBar StButton#vhandle:active {
}
.end-session-dialog-subject {
- padding-left: 17px;
padding-bottom: 20px;
}
-.end-session-dialog-subject:rtl {
- padding-left: 0px;
+.end-session-dialog-layout {
+ padding-left: 17px;
+}
+
+.end-session-dialog-layout:rtl {
padding-right: 17px;
}
.end-session-dialog-description {
- padding-left: 17px;
width: 28em;
}
.end-session-dialog-description:rtl {
- padding-right: 17px;
text-align: right;
}
diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js
index a8a056e..c9ddce8 100644
--- a/js/ui/endSessionDialog.js
+++ b/js/ui/endSessionDialog.js
@@ -240,7 +240,8 @@ const EndSessionDialog = new Lang.Class({
x_align: St.Align.END,
y_align: St.Align.START });
- let messageLayout = new St.BoxLayout({ vertical: true });
+ let messageLayout = new St.BoxLayout({ vertical: true,
+ style_class: 'end-session-dialog-layout' });
mainContentLayout.add(messageLayout,
{ y_align: St.Align.START });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]