Skip to content

Commit ee55470

Browse files
Add spinner optional feature
This is optional because Firefox has issues rendering the spinner SVG.
1 parent 757428b commit ee55470

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,14 @@ Optional features can be enabled by creating new `boolean` preferences in `about
168168

169169
> **Note:** You should move the new tab button somewhere else for this to work, because by default it is on the tab bar too. See [#54](https://github.com/rafaelmardojai/firefox-gnome-theme/issues/54).
170170

171+
- **Spinner** `gnomeTheme.spinner`
172+
173+
Use the GNOME spinner for tabs loading.
174+
175+
> **Note:** This is optional because Firefox has issues rendering the spinner SVG:
176+
>
177+
> <img src="theme/icons/process-working-symbolic.svg" alt="GTK Spinner" width="50"/>
178+
171179
- **Normal width tabs** `gnomeTheme.normalWidthTabs`
172180

173181
Use normal width tabs as default Firefox.
Lines changed: 4 additions & 0 deletions
Loading

theme/parts/tabsbar.css

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,26 @@ tab[selected]:-moz-window-inactive {
308308
z-index: 1;
309309
}
310310

311+
/* OPTIONAL: GNOME spinner */
312+
/* Temporal until I find time to work around the rendering issue */
313+
@supports -moz-bool-pref("gnomeTheme.spinner") {
314+
/* Tab spinner */
315+
.tab-throbber::before {
316+
animation: gnome-spinner 1s linear infinite !important;
317+
background-image: url("../icons/process-working-symbolic.svg") !important;
318+
width: 16px !important;
319+
opacity: 1 !important;
320+
}
321+
@keyframes gnome-spinner {
322+
from {
323+
transform: rotate(0deg);
324+
}
325+
to {
326+
transform: rotate(360deg);
327+
}
328+
}
329+
}
330+
311331
/* OPTIONAL: Hide single tab */
312332
@supports -moz-bool-pref("gnomeTheme.hideSingleTab") {
313333
#tabbrowser-tabs tab:only-of-type {
@@ -330,4 +350,3 @@ tab[selected]:-moz-window-inactive {
330350
background: var(--gnome-tabbar-tab-active-background-contrast) !important;
331351
}
332352
}
333-

0 commit comments

Comments
 (0)