[gnome-shell/wip/sass] panelMenu: Use a normal St.Bin to allow styling
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/sass] panelMenu: Use a normal St.Bin to allow styling
- Date: Wed, 29 Oct 2014 13:49:51 +0000 (UTC)
commit eff2f944358f49de222cdd86e244a7addf0c2b8e
Author: Carlos Soriano <carlos soriano89 gmail com>
Date: Tue Oct 28 10:56:46 2014 +0100
panelMenu: Use a normal St.Bin to allow styling
Currently we don't add some style to ButtonBox like padding etc, we add
it programatically taking into account minimum padding and natural
padding. The thing is that with natural padding it works as expected
even for low resolutions.
As a design request, we need to style from css, and since the current
ButtonBox class doesn't add any worth functionality, change that and use
a simple St.Bin that allow normal styling.
data/theme/_common.scss | 3 +--
data/theme/gnome-shell.css | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/data/theme/_common.scss b/data/theme/_common.scss
index 7453821..e4d3756 100644
--- a/data/theme/_common.scss
+++ b/data/theme/_common.scss
@@ -265,8 +265,7 @@ StScrollBar {
}
.panel-button {
- -natural-hpadding: 12px;
- -minimum-hpadding: 6px;
+ padding: 0px 12px;
font-weight: bold;
color: #ccc;
transition-duration: 100ms;
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index c7faad2..c1196bf 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -1201,8 +1201,7 @@ StScrollBar {
-panel-corner-background-color: transparent;
-panel-corner-border-color: transparent; }
#panel .panel-button {
- -natural-hpadding: 12px;
- -minimum-hpadding: 6px;
+ padding: 0px 12px;
font-weight: bold;
color: #ccc;
transition-duration: 100ms; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]