A fork of the Materia GTK theme.

Important information: Google announced that, from September 2026, Android devices will require ALL apps to be signed by Google, effectively leading to an iOS situation. Value your right to a computer that does what you want; do not tolerate this monopolistic practice! Contact me if you don't understand why it is bad. Click to learn more.

 _app-grid.scss

View raw Download
text/plain • 3.45 kiB
ASCII text
        
            
1
/* App Grid */
2
3
$app_icon_size: 96px;
4
$app_icon_padding: 24px;
5
6
// app icons
7
.icon-grid {
8
-shell-grid-horizontal-item-size: $app_icon_size + $app_icon_padding * 2;
9
-shell-grid-vertical-item-size: $app_icon_size + $app_icon_padding * 2;
10
spacing: $base_spacing * 6;
11
12
.overview-icon {
13
icon-size: $app_icon_size;
14
}
15
}
16
17
//.app-display { spacing: 20px; }
18
19
/* App Icons */
20
21
$app_grid_fg_color: #fff;
22
23
// Icon tiles in the app grid
24
.app-well-app,
25
%app-well-app {
26
@include overview-icon($app_grid_fg_color);
27
28
.overview-icon.overview-icon-with-label {
29
padding: 10px 8px 5px 8px;
30
31
> StBoxLayout {
32
spacing: $base_spacing;
33
}
34
}
35
}
36
37
/* App Folders */
38
.app-well-app.app-folder {
39
background-color: transparentize($osd_bg_color, 0.8);
40
border-radius: $base_border_radius + 4px; // same as %icon_tile
41
}
42
43
// expanded folder
44
.app-folder-dialog {
45
border-radius: $modal_radius * 1.5;
46
border: 1px solid $osd_outer_borders_color;
47
spacing: 12px;
48
background-color: transparentize(darken($osd_bg_color,10%), 0.05);
49
50
& .folder-name-container {
51
padding: 24px 36px 0;
52
spacing: 12px;
53
54
& .folder-name-label,
55
& .folder-name-entry {
56
font-size: 18pt;
57
font-weight: bold;
58
}
59
60
& .folder-name-entry { width: 300px }
61
62
/* FIXME: this is to keep the label in sync with the entry */
63
& .folder-name-label { padding: 5px 7px; color: $osd_fg_color; }
64
65
& .edit-folder-button {
66
@extend %button;
67
68
padding: 0;
69
width: 36px;
70
height: 36px;
71
border-radius: 18px;
72
73
& > StIcon { icon-size: 16px }
74
}
75
}
76
}
77
.app-folder-dialog-container {
78
padding: 12px;
79
width: 800px;
80
height: 600px;
81
}
82
83
.app-folder-icon {
84
padding: $base_padding;
85
spacing-rows: $base_spacing;
86
spacing-columns: $base_spacing;
87
}
88
89
90
// Running app indicator (also shown in dash)
91
.app-well-app-running-dot {
92
height: 5px;
93
width: 5px;
94
border-radius:5px;
95
background-color: $osd_fg_color;
96
margin-bottom: 1px;
97
}
98
99
// Rename popup for app folders
100
.rename-folder-popup {
101
.rename-folder-popup-item {
102
spacing: $base_spacing;
103
&:ltr, &:rtl { padding: 0 $base_padding * 2; }
104
}
105
}
106
107
// right-click app menu
108
.app-menu,
109
.app-well-menu {
110
max-width: 27.25em;
111
}
112
113
// App Grid pagination indicators
114
.page-indicator {
115
padding: 15px 20px;
116
117
.page-indicator-icon {
118
width: 10px;
119
height: 10px;
120
border-radius: 10px; // the same as height&width
121
background-color: white;
122
}
123
}
124
125
// Some hacks I don't even know
126
.all-apps,
127
.frequent-apps > StBoxLayout {
128
// horizontal padding to make sure scrollbars or dash don't overlap content
129
padding: 0px 88px 10px 88px;
130
}
131
132
// Label when no frequent apps
133
.no-frequent-applications-label { @extend %status_text; }
134
135
// shutdown and other actions in the grid
136
.system-action-icon {
137
background-color: rgba(0,0,0,0.8);
138
color: #fff;
139
border-radius: 99px;
140
icon-size: $app_icon_size * 0.5;
141
}
142
143
/* Frequent | All toggle */
144
145
// container
146
.app-view-controls {
147
padding-bottom: 32px;
148
}
149
150
// buttons
151
.app-view-control {
152
padding: 4px 32px;
153
margin: 0 4px;
154
155
&, &:hover, &:checked {
156
@include button(undecorated);
157
color: darken($osd_fg_color, 25%);
158
}
159
160
&:hover {
161
color: $osd_fg_color;
162
box-shadow: inset 0 -2px darken($osd_fg_color, 25%);
163
}
164
165
&:active {
166
box-shadow: inset 0 -2px $osd_fg_color;
167
}
168
169
&:checked {
170
color: $osd_fg_color;
171
box-shadow: inset 0 -2px $selected_bg_color;
172
}
173
174
&:first-child {
175
border-right-width: 0;
176
border-radius: 0;
177
}
178
179
&:last-child {
180
border-radius: 0;
181
}
182
}
183