shortcuts label: Redo the keycap theming

Use a style class directly on the frame. This is easier to reuse.
This commit is contained in:
Matthias Clasen 2015-10-28 07:10:30 -04:00
parent 4e950da4d1
commit 62ec4a2415
4 changed files with 4 additions and 3 deletions

View File

@ -175,6 +175,7 @@ display_shortcut (GtkContainer *self,
gtk_container_add (self, dim_label ("+"));
frame = gtk_frame_new (NULL);
gtk_style_context_add_class (gtk_widget_get_style_context (frame), "keycap");
gtk_widget_show (frame);
gtk_container_add (self, frame);

View File

@ -3447,7 +3447,7 @@ shortcutswindow .round .button label {
padding: 0;
}
shortcutswindow GtkShortcutLabel .frame {
.frame.keycap {
background-color: #fefefe;
border: 1px solid #cecece;
border-radius: 5px;

View File

@ -4660,7 +4660,7 @@ shortcutswindow .round .titlebar .button.titlebutton label,
.titlebar shortcutswindow .round .button.titlebutton label {
padding: 0; }
shortcutswindow GtkShortcutLabel .frame {
.frame.keycap {
background-color: #fefefe;
border: 1px solid #cecece;
border-radius: 5px;

View File

@ -4833,7 +4833,7 @@ shortcutswindow .round .titlebar .button.titlebutton label,
.titlebar shortcutswindow .round .button.titlebutton label {
padding: 0; }
shortcutswindow GtkShortcutLabel .frame {
.frame.keycap {
background-color: #fefefe;
border: 1px solid #cecece;
border-radius: 5px;