Skip to content

Commit

Permalink
smaller buttons, menus & other widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
Jazqa committed Sep 21, 2017
1 parent c02f4d9 commit 7090527
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 31 deletions.
27 changes: 8 additions & 19 deletions gtk-2.0/main.rc
Expand Up @@ -17,10 +17,10 @@ style "default" {
GtkWidget::focus-line-width = 1
GtkWidget::focus-line-pattern = "\2\1"

GtkToolbar::internal-padding = 4
GtkToolButton::icon-spacing = 4
GtkToolbar::internal-padding = 1
GtkToolButton::icon-spacing = 2

GtkWidget::tooltip-radius = 3
GtkWidget::tooltip-radius = 2
GtkWidget::tooltip-alpha = 235
GtkWidget::new-tooltip-style = 1 #for compatibility

Expand All @@ -40,10 +40,10 @@ style "default" {

GtkButton::default-border = {0, 0, 0, 0}
GtkButton::default-outside-border = {0, 0, 0, 0}
GtkButton::inner-border = {4, 4, 4, 4}
GtkButton::inner-border = {1, 1, 1, 1}

GtkEntry::state-hint = 1
GtkEntry::inner-border = {7, 7, 4, 5}
GtkEntry::inner-border = {2, 2, 2, 2}

GtkPaned::handle-size = 9
GtkHPaned::handle-size = 9
Expand Down Expand Up @@ -1146,17 +1146,6 @@ style "default" {
file = "assets/scale-slider-insensitive.png"
}

###########
# Menubar #
###########

image {
function = BOX
detail = "menubar"
file = "assets/line.png"
border = {0, 0, 0, 1}
}

#########
# Menus #
#########
Expand Down Expand Up @@ -1505,8 +1494,8 @@ style "menubar" {

style "menubar_item" {

xthickness = 3
ythickness = 4
xthickness = 2
ythickness = 1

fg[PRELIGHT] = @link_color

Expand Down Expand Up @@ -1774,7 +1763,7 @@ style "separator_menu_item" {
style "button" {

xthickness = 2
ythickness = 2
ythickness = 3

# For the sake of sanity style buttons this way
engine "pixmap" {
Expand Down
61 changes: 56 additions & 5 deletions gtk-3.0/gtk-dark.css
@@ -1,11 +1,22 @@
/* uses the Adwaita theme as base */
@import url("resource:///org/gtk/libgtk/theme/Adwaita/gtk-contained-dark.css");

window.csd .titlebar:not(headerbar) {
window.csd .titlebar:not(headerbar),
window.csd .titlebar {
min-height: 0;
padding-top: 0;
padding-bottom: 0;
box-shadow: none;
border-bottom: 1px solid #14191C;
}

window.csd .titlebar:not(headerbar):backdrop,
window.csd .titlebar:backdrop {
min-height: 0;
padding-top: 0;
padding-bottom: 0;
box-shadow: none;
border-bottom: 1px solid #14191C;
}

headerbar,
Expand All @@ -15,12 +26,15 @@ headerbar.titlebar {
padding-top: 0;
padding-bottom: 0;
box-shadow: none;
border: none;
border-bottom: 1px solid #14191C;
}

headerbar:backdrop,
headerbar.titlebar:backdrop {
background: #33393B;
box-shadow: none;
border-bottom: 1px solid #14191C;
}

headerbar button.titlebutton,
Expand Down Expand Up @@ -56,6 +70,42 @@ button > box > label.counter-label {
margin-bottom: 3px;
}

button {
background: linear-gradient(to bottom, rgba(46, 51, 53, 1), rgba(38, 42, 44, 1));
padding: 3px 4px;
min-height: 10px;
min-width: 12px;
}

button.osd {
padding: 0;
margin: 0;
}

entry {
padding: 2px 4px;
margin: 0;
min-height: 8px;
}

menubar > menuitem,
.menubar > menuitem {
padding: 1px 6px;
margin: 0;
}


notebook {
padding: 0;
}

notebook > header > tabs,
notebook > header > tabs > tab {
background-color: #202425;
padding: 2px 6px;
min-height: 12px;
}

decoration {
background: #2C3133;
border-radius: 2px 2px 0 0;
Expand All @@ -71,7 +121,7 @@ decoration:backdrop {
}

.nautilus-window treeview .view {
color: #EEEEEC;
color: #EEEEEC
background: #232729;
border-bottom: 1px solid rgba(50, 56, 58, 1);
}
Expand All @@ -97,7 +147,6 @@ decoration:backdrop {
color: #EEEEEC;
}


.disk-space-display.unknown {
background-color: #7f817c;
border-color: rgba(0, 0, 0, 0.5);
Expand All @@ -113,6 +162,8 @@ decoration:backdrop {
border-color: rgba(0, 0, 0, 0.5);
}



list row {
padding: 0;
min-height: 28px;
}

74 changes: 67 additions & 7 deletions gtk-3.0/gtk.css
@@ -1,11 +1,22 @@
/* uses the Adwaita theme as base */
@import url("resource:///org/gtk/libgtk/theme/Adwaita/gtk-contained.css");

window.csd .titlebar:not(headerbar) {
window.csd .titlebar:not(headerbar),
window.csd .titlebar {
min-height: 0;
padding-top: 0;
padding-bottom: 0;
box-shadow: none;
border-bottom: 1px solid #B6B6B3;
}

window.csd .titlebar:not(headerbar):backdrop,
window.csd .titlebar:backdrop {
min-height: 0;
padding-top: 0;
padding-bottom: 0;
box-shadow: none;
border-bottom: 1px solid #B6B6B3;
}

headerbar,
Expand All @@ -15,12 +26,15 @@ headerbar.titlebar {
padding-top: 0;
padding-bottom: 0;
box-shadow: none;
border: none;
border-bottom: 1px solid #B6B6B3;
}

headerbar:backdrop,
headerbar.titlebar:backdrop {
background: #E8E8E7;
box-shadow: none;
border-bottom: 1px solid #B6B6B3;
}

headerbar button.titlebutton,
Expand All @@ -37,6 +51,7 @@ headerbar entry,
headerbar spinbutton,
headerbar widget,
headerbar switch {
background: linear-gradient(to bottom, rgba(244, 244, 244, 1), rgba(207, 207, 207, 1));
min-height: 26px;
min-width: 26px;
padding: 0;
Expand All @@ -51,12 +66,6 @@ headerbar > separator {
margin-bottom: 4px;
}


button > box > label.counter-label {
margin-top: 3px;
margin-bottom: 3px;
}

decoration {
background: #F4F4F4;
border-radius: 2px 2px 0 0;
Expand All @@ -67,6 +76,47 @@ decoration:backdrop {
border-radius: 2px 2px 0 0;
}

button > box > label.counter-label {
margin-top: 3px;
margin-bottom: 3px;
}

button {
background: linear-gradient(to bottom, rgba(244, 244, 244, 1), rgba(207, 207, 207, 1));
padding: 3px 4px;
min-height: 10px;
min-width: 12px;
}

button.osd {
padding: 0;
margin: 0;
}

entry {
padding: 2px 4px;
margin: 0;
min-height: 8px;
}

menubar > menuitem,
.menubar > menuitem {
padding: 1px 6px;
margin: 0;
}


notebook {
padding: 0;
}

notebook > header > tabs,
notebook > header > tabs > tab {
background-color: #E8E8E7;
padding: 2px 6px;
min-height: 12px;
}

.nautilus-window {
background: #FFFFFF;
}
Expand Down Expand Up @@ -113,5 +163,15 @@ decoration:backdrop {
border-color: rgba(0, 0, 0, 0.5);
}

list row {
padding: 0;
min-height: 28px;
}








0 comments on commit 7090527

Please sign in to comment.