mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 14:30:15 +00:00
shortcuts label: Redo the keycap theming
Use a style class directly on the frame. This is easier to reuse.
This commit is contained in:
parent
4e950da4d1
commit
62ec4a2415
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user