Add popover support

pull/145/head
Satyajit Sahoo 2014-02-21 06:03:49 +05:30
parent 6d6600289e
commit d7b4556694
1 changed files with 66 additions and 0 deletions

View File

@ -1049,6 +1049,72 @@ GtkModelMenuItem GtkBox GtkImage {
padding-right: 4px; padding-right: 4px;
} }
/************
* popovers *
************/
GtkPopover {
margin: 10px;
padding: 2px;
border-radius: 2px;
border-color: mix(shade(@menu_bg_color, 0.7), @menu_fg_color, 0.12);
border-width: 1px;
border-style: solid;
background-clip: border-box;
background-color: @menu_bg_color;
color: @menu_fg_color;
box-shadow: 0 2px 3px alpha(black, 0.5);
}
GtkPopover.osd {
box-shadow: 0 2px 7px 3px alpha(black, 0.5);
}
GtkPopover > .list,
GtkPopover > .view,
GtkPopover > .toolbar {
background-color: transparent;
}
GtkPopover.osd > .toolbar .button {
border-radius: 0;
border-width: 0;
background-image: none;
background-color: transparent;
}
GtkModelButton.button {
color: @menu_fg_color;
}
GtkModelButton.button:active,
GtkModelButton.button:insensitive,
GtkModelButton.button:active:insensitive,
GtkModelButton.button {
background-color: transparent;
background-image: none;
border-color: transparent;
border-style: none;
box-shadow: none;
}
GtkPopover .separator {
border: 0;
background-color: transparent;
color: alpha(currentColor, 0.5);
font-size: 80%;
font-weight: bold;
}
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;
color: @theme_selected_fg_color;
}
/************ /************
* notebook * * notebook *
************/ ************/