theme: use a widgets.scss file for widget import
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/904
This commit is contained in:
parent
5e1def2642
commit
7c0b6c8413
@ -3,6 +3,7 @@ $variant: 'light';
|
||||
@import "gnome-shell-sass/_high-contrast-colors"; //use gtk colors
|
||||
@import "gnome-shell-sass/_drawing";
|
||||
@import "gnome-shell-sass/_common";
|
||||
@import "gnome-shell-sass/_widgets";
|
||||
|
||||
//force symbolic icons
|
||||
stage {
|
||||
|
@ -63,40 +63,6 @@ stage {
|
||||
color: $fg_color;
|
||||
}
|
||||
|
||||
/* WIDGETS */
|
||||
@import 'widgets/app-grid';
|
||||
@import 'widgets/app-switcher';
|
||||
@import 'widgets/buttons';
|
||||
@import 'widgets/calendar';
|
||||
@import 'widgets/check-box';
|
||||
@import 'widgets/corner-ripple';
|
||||
@import 'widgets/dash';
|
||||
@import 'widgets/dialogs';
|
||||
@import 'widgets/end-session-dialog';
|
||||
@import 'widgets/entries';
|
||||
@import 'widgets/hotplug';
|
||||
@import 'widgets/ibus-popup';
|
||||
@import 'widgets/keyboard';
|
||||
@import 'widgets/login-dialog';
|
||||
@import 'widgets/looking-glass';
|
||||
@import 'widgets/message-list';
|
||||
@import 'widgets/notifications';
|
||||
@import 'widgets/misc';
|
||||
@import 'widgets/network-dialog';
|
||||
@import 'widgets/osd';
|
||||
@import 'widgets/overview';
|
||||
@import 'widgets/panel';
|
||||
@import 'widgets/popovers';
|
||||
@import 'widgets/screen-shield';
|
||||
@import 'widgets/scrollbars';
|
||||
@import 'widgets/search-entry';
|
||||
@import 'widgets/search-results';
|
||||
@import 'widgets/slider';
|
||||
@import 'widgets/switches';
|
||||
@import 'widgets/tiled-previews';
|
||||
@import 'widgets/window-picker';
|
||||
@import 'widgets/workspace-switcher';
|
||||
|
||||
/* Common Stylings */
|
||||
|
||||
// Text
|
||||
@ -180,7 +146,7 @@ stage {
|
||||
border-color: $bubble_borders_color;
|
||||
border-style: solid;
|
||||
border-width: 0 !important;
|
||||
border-top-width: 1px !important;
|
||||
border-right-width: 1px !important;
|
||||
box-shadow:none !important;
|
||||
|
||||
&:insensitive { @include button(insensitive);}
|
||||
@ -190,16 +156,16 @@ stage {
|
||||
|
||||
// radius is 2 pixel less to fit in bubble
|
||||
&:first-child {
|
||||
border-right-width: 1px !important;
|
||||
border-radius: 0px 0px 0px $modal_radius - 2px;
|
||||
border-radius: 0 0 0 $modal_radius - 2px;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-right-width: 0 !important;
|
||||
border-radius: 0px 0px $modal_radius - 2px 0px;
|
||||
border-radius: 0 0 $modal_radius - 2px 0;
|
||||
}
|
||||
|
||||
&:first-child:last-child {
|
||||
border-radius: 0px 0px $modal_radius - 2px $modal_radius - 2px;
|
||||
border-radius: 0 0 $modal_radius - 2px $modal_radius - 2px;
|
||||
}
|
||||
}
|
||||
|
||||
|
39
data/theme/gnome-shell-sass/_widgets.scss
Normal file
39
data/theme/gnome-shell-sass/_widgets.scss
Normal file
@ -0,0 +1,39 @@
|
||||
//
|
||||
// Shell widgets stylesheets are placed in separate .scss files
|
||||
// in 'widgets' and imported into the main stylesheet in this file.
|
||||
// To create or update a widget for the shell modify the list below.
|
||||
//
|
||||
|
||||
/* WIDGETS */
|
||||
@import 'widgets/app-grid';
|
||||
@import 'widgets/app-switcher';
|
||||
@import 'widgets/buttons';
|
||||
@import 'widgets/calendar';
|
||||
@import 'widgets/check-box';
|
||||
@import 'widgets/corner-ripple';
|
||||
@import 'widgets/dash';
|
||||
@import 'widgets/dialogs';
|
||||
@import 'widgets/end-session-dialog';
|
||||
@import 'widgets/entries';
|
||||
@import 'widgets/hotplug';
|
||||
@import 'widgets/ibus-popup';
|
||||
@import 'widgets/keyboard';
|
||||
@import 'widgets/login-dialog';
|
||||
@import 'widgets/looking-glass';
|
||||
@import 'widgets/message-list';
|
||||
@import 'widgets/notifications';
|
||||
@import 'widgets/misc';
|
||||
@import 'widgets/network-dialog';
|
||||
@import 'widgets/osd';
|
||||
@import 'widgets/overview';
|
||||
@import 'widgets/panel';
|
||||
@import 'widgets/popovers';
|
||||
@import 'widgets/screen-shield';
|
||||
@import 'widgets/scrollbars';
|
||||
@import 'widgets/search-entry';
|
||||
@import 'widgets/search-results';
|
||||
@import 'widgets/slider';
|
||||
@import 'widgets/switches';
|
||||
@import 'widgets/tiled-previews';
|
||||
@import 'widgets/window-picker';
|
||||
@import 'widgets/workspace-switcher';
|
@ -3,3 +3,4 @@ $variant: 'dark';
|
||||
@import "gnome-shell-sass/_colors"; //use gtk colors
|
||||
@import "gnome-shell-sass/_drawing";
|
||||
@import "gnome-shell-sass/_common";
|
||||
@import "gnome-shell-sass/_widgets";
|
||||
|
Loading…
Reference in New Issue
Block a user