2019-12-18 21:25:03 +00:00
|
|
|
/* App Grid */
|
|
|
|
|
|
|
|
$app_icon_size: 96px;
|
|
|
|
|
|
|
|
// app icons
|
|
|
|
.icon-grid {
|
2022-02-07 18:22:40 +00:00
|
|
|
row-spacing: $base_padding * 2;
|
|
|
|
column-spacing: $base_padding * 2;
|
2022-02-15 16:00:51 +00:00
|
|
|
max-row-spacing: $base_padding * 7;
|
|
|
|
max-column-spacing: $base_padding * 7;
|
2021-01-15 18:23:50 +00:00
|
|
|
page-padding-top: $base_padding * 4;
|
|
|
|
page-padding-bottom: $base_padding * 4;
|
2022-02-15 16:00:51 +00:00
|
|
|
page-padding-left: $base_padding * 3;
|
|
|
|
page-padding-right: $base_padding * 3;
|
2019-12-18 21:25:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* App Icons */
|
|
|
|
|
|
|
|
// Icon tiles in the app grid
|
2022-02-07 18:22:40 +00:00
|
|
|
.app-well-app {
|
2022-10-13 16:51:17 +00:00
|
|
|
@include overview_icon($system_fg_color);
|
2019-12-19 15:38:27 +00:00
|
|
|
|
2022-11-03 15:28:24 +00:00
|
|
|
.overview-icon {
|
|
|
|
padding: $base_padding*2;
|
|
|
|
border-radius: $base_border_radius*3;
|
2022-10-13 16:51:17 +00:00
|
|
|
color: $system_fg_color;
|
2022-11-03 15:28:24 +00:00
|
|
|
}
|
2020-02-04 16:03:05 +00:00
|
|
|
.overview-icon.overview-icon-with-label {
|
|
|
|
> StBoxLayout {
|
2022-02-07 18:22:40 +00:00
|
|
|
spacing: $base_padding;
|
2020-02-04 16:03:05 +00:00
|
|
|
}
|
2019-12-19 15:38:27 +00:00
|
|
|
}
|
2019-12-18 21:25:03 +00:00
|
|
|
}
|
|
|
|
|
2022-02-07 18:22:40 +00:00
|
|
|
// app folders
|
2020-02-16 20:56:27 +00:00
|
|
|
.app-well-app.app-folder {
|
2022-10-13 16:51:17 +00:00
|
|
|
@include overview_icon($system_fg_color, $flat: false);
|
2019-12-18 21:25:03 +00:00
|
|
|
}
|
|
|
|
|
2019-12-19 18:05:28 +00:00
|
|
|
// expanded folder
|
2022-02-07 18:22:40 +00:00
|
|
|
.app-folder-dialog {
|
2022-11-03 15:28:24 +00:00
|
|
|
border-radius: $modal_radius*4;
|
|
|
|
background-color: $bg_color;
|
|
|
|
padding: $base_padding*2;
|
|
|
|
box-shadow:inset 0 0 0 1px $outer_borders_color;
|
|
|
|
|
|
|
|
@if $is_highcontrast {
|
|
|
|
box-shadow:inset 0 0 0 2px $hc_inset_color;
|
|
|
|
}
|
2019-12-17 19:39:24 +00:00
|
|
|
|
|
|
|
& .folder-name-container {
|
2020-02-02 14:35:35 +00:00
|
|
|
padding: 24px 36px 0;
|
2019-12-17 19:39:24 +00:00
|
|
|
spacing: 12px;
|
|
|
|
|
|
|
|
& .folder-name-label,
|
|
|
|
& .folder-name-entry {
|
2022-02-07 18:22:40 +00:00
|
|
|
@extend %title_1;
|
2019-12-17 19:39:24 +00:00
|
|
|
}
|
|
|
|
|
2022-11-03 15:28:24 +00:00
|
|
|
& .folder-name-entry {
|
|
|
|
width: 12em;
|
|
|
|
border-radius: $base_border_radius*2;
|
|
|
|
}
|
2019-12-17 19:39:24 +00:00
|
|
|
|
|
|
|
/* FIXME: this is to keep the label in sync with the entry */
|
2022-10-13 16:51:17 +00:00
|
|
|
& .folder-name-label { padding: 5px 7px; color: $system_fg_color; }
|
2019-12-17 19:39:24 +00:00
|
|
|
|
|
|
|
& .edit-folder-button {
|
2022-02-15 16:00:51 +00:00
|
|
|
@extend %button;
|
|
|
|
padding: 0;
|
2019-12-17 19:39:24 +00:00
|
|
|
width: 36px;
|
|
|
|
height: 36px;
|
2022-02-15 16:00:51 +00:00
|
|
|
border-radius: 99px;
|
2021-12-28 13:46:54 +00:00
|
|
|
& > StIcon { icon-size: $base_icon_size }
|
2019-12-17 19:39:24 +00:00
|
|
|
}
|
|
|
|
}
|
2020-05-20 22:20:15 +00:00
|
|
|
|
|
|
|
& .icon-grid {
|
2022-02-07 18:22:40 +00:00
|
|
|
row-spacing: $base_padding * 2;
|
|
|
|
column-spacing: $base_padding * 5;
|
2020-11-25 21:52:29 +00:00
|
|
|
page-padding-top: 0;
|
|
|
|
page-padding-bottom: 0;
|
2021-02-12 19:48:37 +00:00
|
|
|
page-padding-left: 0;
|
|
|
|
page-padding-right: 0;
|
2020-05-20 22:20:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
& .page-indicators {
|
|
|
|
margin-bottom: 18px;
|
|
|
|
}
|
2019-12-12 18:54:18 +00:00
|
|
|
}
|
2021-12-28 13:46:54 +00:00
|
|
|
|
2019-12-12 18:54:18 +00:00
|
|
|
.app-folder-dialog-container {
|
2021-12-28 13:46:54 +00:00
|
|
|
padding: $base_padding*2;
|
2022-08-22 19:37:37 +00:00
|
|
|
width: 720px;
|
|
|
|
height: 720px;
|
2019-12-18 21:25:03 +00:00
|
|
|
}
|
2019-12-19 18:05:28 +00:00
|
|
|
|
2019-12-18 21:25:03 +00:00
|
|
|
// Running app indicator (also shown in dash)
|
|
|
|
.app-well-app-running-dot {
|
2019-12-19 15:38:27 +00:00
|
|
|
height: 5px;
|
|
|
|
width: 5px;
|
|
|
|
border-radius:5px;
|
2022-02-07 18:22:40 +00:00
|
|
|
margin-bottom: 8px;
|
2022-10-13 16:51:17 +00:00
|
|
|
background-color: $system_fg_color;
|
2019-12-18 21:25:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Rename popup for app folders
|
|
|
|
.rename-folder-popup {
|
2019-12-19 15:38:27 +00:00
|
|
|
.rename-folder-popup-item {
|
2022-02-07 18:22:40 +00:00
|
|
|
spacing: $base_padding;
|
2019-12-19 20:56:45 +00:00
|
|
|
&:ltr, &:rtl { padding: 0 $base_padding * 2; }
|
2019-12-19 15:38:27 +00:00
|
|
|
}
|
2019-12-18 21:25:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// App Grid pagination indicators
|
|
|
|
.page-indicator {
|
2021-01-15 18:23:50 +00:00
|
|
|
padding: $base_padding $base_padding * 2 0;
|
2022-05-27 18:09:45 +00:00
|
|
|
transition-duration:400ms;
|
2019-12-19 15:38:27 +00:00
|
|
|
|
|
|
|
.page-indicator-icon {
|
2019-12-19 20:56:45 +00:00
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
border-radius: 10px; // the same as height&width
|
|
|
|
background-color: white;
|
2019-12-19 15:38:27 +00:00
|
|
|
}
|
2019-12-18 21:25:03 +00:00
|
|
|
}
|
|
|
|
|
2021-02-03 11:39:26 +00:00
|
|
|
.apps-scroll-view {
|
appDisplay: Adapt to available extra space showing icon grids
Depending on the available horizontal space, we may want to manipulate
the icon grid and scroll view spacing to result in an optimal layout
that has space left to preview prev/next pages.
The main change here is that, when adapting to the available size, the
space given to a page does not necessarily match the available space,
as we need to be able to show more than one page at a time.
With this decoupling of available and page sizes in place, we now know
how much space there is available in order to extend the padding between
pages, or the fade effect applied to the previewed pages.
Underneath, we rely a bit less on hardcoded CSS paddings, and a bit more
on the StScrollView::content-padding property.
All put together, gives us proper space management from ultra-wide
displays, to display ratios that are close to the optimal grid ratio.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1630>
2021-02-19 15:45:57 +00:00
|
|
|
padding: 0;
|
2019-12-18 21:25:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// shutdown and other actions in the grid
|
|
|
|
.system-action-icon {
|
2022-10-13 16:51:17 +00:00
|
|
|
background-color: transparentize($system_fg_color,.9);
|
|
|
|
color: $system_fg_color;
|
2019-12-20 21:33:13 +00:00
|
|
|
border-radius: 99px;
|
2019-12-19 15:38:27 +00:00
|
|
|
icon-size: $app_icon_size * 0.5;
|
2022-11-03 15:28:24 +00:00
|
|
|
@if $is_highcontrast {
|
|
|
|
box-shadow: inset 0 0 0 2px $hc_inset_color;
|
|
|
|
}
|
2019-12-18 21:25:03 +00:00
|
|
|
}
|
2021-02-03 11:46:07 +00:00
|
|
|
|
2022-08-20 21:36:38 +00:00
|
|
|
.page-navigation-hint {
|
|
|
|
&.dnd {
|
|
|
|
background: rgba(255, 255, 255, 0.1);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.next:ltr,
|
|
|
|
&.previous:rtl {
|
|
|
|
background-gradient-start: rgba(255, 255, 255, 0.05);
|
|
|
|
background-gradient-end: transparent;
|
|
|
|
background-gradient-direction: horizontal;
|
|
|
|
border-radius: $modal_radius*1.5 0px 0px $modal_radius*1.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.previous:ltr,
|
|
|
|
&.next:rtl {
|
|
|
|
background-gradient-start: transparent;
|
|
|
|
background-gradient-end: rgba(255, 255, 255, 0.05);
|
|
|
|
background-gradient-direction: horizontal;
|
|
|
|
border-radius: 0px $modal_radius*1.5 $modal_radius*1.5 0px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-28 16:19:55 +00:00
|
|
|
.page-navigation-arrow {
|
2022-11-03 15:28:24 +00:00
|
|
|
margin: 6px;
|
|
|
|
padding: 18px;
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
border-radius: 99px;
|
2022-10-13 16:51:17 +00:00
|
|
|
|
|
|
|
> StIcon { color: $system_fg_color;}
|
|
|
|
|
2022-11-03 15:28:24 +00:00
|
|
|
@if $is_highcontrast {
|
2022-10-13 16:51:17 +00:00
|
|
|
@include button(normal, $system_fg_color, transparentize($system_bg_color, 0.5));
|
2022-06-28 16:19:55 +00:00
|
|
|
}
|
|
|
|
|
2022-10-13 16:51:17 +00:00
|
|
|
&:insensitive { @include button(undecorated, $system_fg_color, transparentize($system_bg_color, 0.5));}
|
|
|
|
&:hover { @include button(hover, $system_fg_color, transparentize($system_bg_color, 0.5));}
|
|
|
|
&:active { @include button(active, $system_fg_color, transparentize($system_bg_color, 0.5));}
|
2021-02-13 18:54:14 +00:00
|
|
|
}
|