Skip to content

Commit

Permalink
Tweak popover to match menus
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Aug 3, 2014
1 parent a45b635 commit 32bbead
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 18 deletions.
4 changes: 0 additions & 4 deletions gtk-3.0/apps/gnome-applications.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,6 @@ WnckPager, WnckTasklist {
/************
* nautilus *
************/
.nautilus-canvas-item {
border-radius: 3px;
}

.nautilus-desktop.nautilus-canvas-item {
color: white;
text-shadow: 1px 1px black;
Expand Down
64 changes: 50 additions & 14 deletions gtk-3.0/gtk-widgets.css
Original file line number Diff line number Diff line change
Expand Up @@ -1263,15 +1263,19 @@ GtkPopover {
margin: 10px;
padding: 2px;
border-radius: 3px;
border-color: shade(@theme_bg_color, 0.8);
border-color: shade(@menu_bg_color, 0.8);
border-width: 1px;
border-style: solid;
background-clip: border-box;
background-color: @theme_bg_color;
color: @theme_fg_color;
background-color: @menu_bg_color;
color: @menu_fg_color;
box-shadow: 0 2px 3px alpha(black, 0.5);
}

GtkPopover:backdrop {
box-shadow: none;
}

GtkPopover.osd {
box-shadow: 0 2px 7px 3px alpha(black, 0.5);
}
Expand All @@ -1297,26 +1301,57 @@ GtkPopover .separator {
font-weight: bold;
}

GtkModelButton.button,
.menuitem.button {
color: @theme_fg_color;
}

.menuitem.button,
.menuitem.button:active,
.menuitem.button:insensitive,
.menuitem.button:active:insensitive {
background-color: transparent;
background-image: none;
border-color: transparent;
border-style: none;
box-shadow: none;
color: @menu_fg_color;
}

.menuitem.button:active:hover,
.menuitem.button:hover,
.menuitem.button:selected {
border-width: 0;
border-color: transparent;
background-color: @theme_selected_bg_color;
background-image: none;
color: @theme_selected_fg_color;
}

GtkModelButton.button {
color: @menu_fg_color;
}

GtkModelButton.button:active,
GtkModelButton.button:insensitive,
GtkModelButton.button:active:insensitive {
GtkModelButton.button:active:insensitive,
GtkModelButton.button {
background-color: transparent;
background-image: none;
border-color: transparent;
border-image: none;
border-style: none;
box-shadow: none;
color: @theme_fg_color;
}

GtkModelButton.button:active:hover,
GtkModelButton.button:hover,
GtkModelButton.button:selected {
border-width: 0;
border-color: transparent;
background-color: @theme_selected_bg_color;
background-image: none;
background-color: @theme_selected_bg_color;
color: @theme_selected_fg_color;
text-shadow: none;
border-width: 0;
border-color: transparent;
}

/************
Expand Down Expand Up @@ -1927,7 +1962,8 @@ OsScrollbar:insensitive {
border-color: shade(@titlebar_bg_color, 0.85);
}

.menuitem.separator {
.menuitem.separator,
.menuitem .separator {
-GtkMenuItem-horizontal-padding: 0;
-GtkWidget-separator-height: 1;

Expand Down Expand Up @@ -4038,7 +4074,7 @@ GtkBubbleWindow .toolbar {

.titlebar .title {
font: bold;
text-shadow: 0 1px shade(@titlebar_bg_color, 1.2);
text-shadow: 0 1px shade(@titlebar_bg_color, 1.1);
}

.titlebar:backdrop {
Expand All @@ -4049,15 +4085,15 @@ GtkBubbleWindow .toolbar {
}

.titlebar .title:backdrop {
text-shadow: 0 1px shade(@titlebar_bg_color, 1.1);
text-shadow: 0 1px shade(@titlebar_bg_color, 1.05);
}

.titlebar .titlebutton {
padding: 4px;
border-style: none;
background: none;
color: mix(@titlebar_fg_color, @titlebar_bg_color, 0.3);
icon-shadow: 0 1px shade(@titlebar_bg_color, 1.2);
icon-shadow: 0 1px shade(@titlebar_bg_color, 1.1);
box-shadow: none;
}

Expand Down Expand Up @@ -4094,7 +4130,7 @@ GtkBubbleWindow .toolbar {
.titlebar .titlebutton:backdrop {
background-image: none;
color: mix(@titlebar_fg_color, @titlebar_bg_color, 0.4);
icon-shadow: 0 1px shade(@titlebar_bg_color, 1.1);
icon-shadow: 0 1px shade(@titlebar_bg_color, 1.05);
}

.window-frame {
Expand Down

0 comments on commit 32bbead

Please sign in to comment.