Zonnev / elementaryos-firefox-theme

This theme for Firefox supports all the window buttons layouts from Tweaks and it blends into the elementary OS user interface.
Mozilla Public License 2.0
424 stars 26 forks source link

Move the icon to the start of tabs #201

Closed duong-db closed 1 month ago

duong-db commented 8 months ago

Hello, I recently switched from using the Chrome browser to Firefox. Really love your theme. However, I wonder if is it possible to move the icon to the start of each tab?

image Currently, the default tab layout is: Exit button -> Title -> Icon. I would prefer it to be: Exit button -> Icon -> Title. This layout seems more logical to me. Can this be done?

Zonnev commented 8 months ago

Hello, yes, you can move the icon button between the close button and tab label by adding this to the base.css file:

.tab-icon-stack:not([pinned]) {
    order: 1 !important;
}
.tab-close-button {
    order: 2 !important;
}
Zonnev commented 8 months ago

Hello, just to let you know, in the new update, I've made the text and favicon centered in the tabs, in your prefered layout. I've done this to match eOS standard layout of tabs.

duong-db commented 8 months ago

Great. I really appreciate it. BTW, I suggest editting the #commonDialogWindow at userChrome.css so that it is more consistent with the eOS dark theme.

Recently, I have made a customized userContent.css to force some contents in "about:about" to follow the eOS dark scheme, however, it's not perfect yet. I hope that it will benefit the project as well.

Some minor changes | Before | After | |---------------------- | ---------------------- | |![Screenshot from 2024-02-05 15 16 42](https://github.com/Zonnev/elementaryos-firefox-theme/assets/137669565/2131785d-b828-4dd0-baf2-01215b3a8f37) |![Screenshot from 2024-02-05 15 19 11](https://github.com/Zonnev/elementaryos-firefox-theme/assets/137669565/00be1bc7-27ed-4bf0-b61c-6059482853a0)| | ![Screenshot from 2024-02-05 16 48 53](https://github.com/Zonnev/elementaryos-firefox-theme/assets/137669565/8a397f0e-e2b8-4045-a841-26841c60b931) | ![Screenshot from 2024-02-05 16 48 36](https://github.com/Zonnev/elementaryos-firefox-theme/assets/137669565/7c48647e-11ed-4a3b-88d2-b01bd0e039b7) | | ![Screenshot from 2024-02-05 15 13 11](https://github.com/Zonnev/elementaryos-firefox-theme/assets/137669565/e0d534c6-3075-4809-bb99-0e6e33da41dd) | ![Screenshot from 2024-02-05 15 13 27](https://github.com/Zonnev/elementaryos-firefox-theme/assets/137669565/3da07d13-51ff-419d-bbb2-406894ac9d99) | | ![Screenshot from 2024-02-05 16 12 18](https://github.com/Zonnev/elementaryos-firefox-theme/assets/137669565/c4f20406-2916-49c9-8f43-c057a81cc544) | ![Screenshot from 2024-02-05 17 03 20](https://github.com/Zonnev/elementaryos-firefox-theme/assets/137669565/48baec9d-6e5e-4386-9740-ed704c3e6b9c)| |![Screenshot from 2024-02-05 16 22 29](https://github.com/Zonnev/elementaryos-firefox-theme/assets/137669565/64da4a7c-a685-4f8b-9058-9d61d7e18167) | ![Screenshot from 2024-02-05 16 22 17](https://github.com/Zonnev/elementaryos-firefox-theme/assets/137669565/71388e5b-3cff-4309-a4e3-4395cb0243d5) |
userContent.css ```css @import "color.css"; @media (prefers-color-scheme: dark) { @-moz-document url-prefix("about:"), url-prefix("chrome://browser/content") { :root { --in-content-page-background: var(--eOS-black-500) !important; --in-content-background-color: var(--eOS-black-500) !important; --in-content-page-color: var(--eOS-sivler-100) !important; --in-content-table-background: var(--eOS-black-300) !important; /*--in-content-table-header-background: var(--eOS-black-300) !important;*/ --in-content-primary-button-text-color: var(--eOS-silver-100) !important; --in-content-primary-button-background: var(--eOS-blueberry-500) !important; --in-content-primary-button-background-hover: var(--eOS-blueberry-300) !important; --in-content-primary-button-background-active: var(--eOS-blueberry-500) !important; --in-content-button-border-color: transparent !important; --in-content-button-border-color-hover: transparent !important; --in-content-button-border-color-active: transparent !important; --newtab-background-color: var(--eOS-black-500) !important; --newtab-background-color-secondary: var(--eOS-black-300) !important; --newtab-element-hover-color: var(--eOS-black-300) !important; --newtab-overlay-color: rgba(0,0,0,0.8) !important; --newtab-primary-action-background: var(--eOS-blueberry-100) !important; --newtab-primary-action-background-pocket: var(--eOS-blueberry-100) !important; --box-background-color: var(--eOS-black-300) !important; --box-background: var(--eOS-black-500) !important; --brand-color-accent: var(--eOS-blueberry-300) !important; --brand-color-accent-hover: var(--eOS-blueberry-100) !important; --brand-color-accent-active: var(--eOS-blueberry-300) !important; --color-background-information: var(--eOS-blueberry-500) !important; --icon-color-information: var(--eOS-blueberry-100) !important; --primary-button-background-color: var(--eOS-blueberry-500) !important; --primary-button-hover-background-color: var(--eOS-blueberry-300) !important; --primary-button-active-background-color: var(--eOS-blueberry-100) !important; --primary-button-color: var(--eOS-silver-100) !important; --card-background-color: var(--eOS-black-500) !important; --button-color: var(--eOS-silver-100) !important; --button-background-color: var(--eOS-black-300) !important; --button-hover-background-color: var(--eOS-black-100) !important; --sidebar-background-hover: var(--eOS-black-300) !important; /* Reader mode */ --dark-theme-foreground: var(--eOS-silver-300) !important; --dark-theme-background: var(--eOS-black-700) !important; } /* Toggle button */ .toggle-button{ --toggle-dot-background-color-on-pressed: var(--eOS-silver-100) !important; } /* Dialog */ .dialogBox, dialog { background-color: var(--eOS-black-500) !important; } /* Separator */ separator { border-top-color: var(--eOS-silver-900) !important; border-bottom-color: var(--eOS-silver-900) !important; } /* Checkbox */ checkbox:not(:hover) .checkbox-check:not([checked="true"]), input[type="checkbox"]:not(:hover):not(:checked) { appearance: none !important; border: 2px solid var(--eOS-silver-300) !important; background: var(--eOS-black-500) !important; border-radius: 2px !important; } checkbox:hover .checkbox-check:not([checked="true"]), input[type="checkbox"]:hover:not(:checked) { appearance: none !important; border: 2px solid var(--eOS-silver-100) !important; background: var(--eOS-black-500) !important; border-radius: 2px !important; } /* Radio */ radio:not(:hover) .radio-check:not([selected="true"]), input[type="radio"]:not(:hover):not(:checked) { appearance: none !important; background: var(--eOS-black-500) !important; border: 0.15em solid var(--eOS-silver-300) !important; border-radius: 50% !important; } radio:hover .radio-check:not([selected="true"]), input[type="radio"]:hover:not(:checked) { appearance: none !important; background: var(--eOS-black-500) !important; border: 0.15em solid var(--eOS-silver-100) !important; border-radius: 50% !important; } } /* Private mode */ @-moz-document url-prefix("about:privatebrowsing") { :root { --in-content-page-background: #25003e !important; } ```
color.css ```css /* Reference: https://elementary.io/brand */ :root { --eOS-blueberry-100: #8cd5ff; --eOS-blueberry-300: #64baff; --eOS-blueberry-500: #3689e6; --eOS-blueberry-700: #0d52bf; --eOS-blueberry-900: #002e99; --eOS-black-100: #666666; --eOS-black-300: #4a4a4a; --eOS-black-500: #333333; --eOS-black-700: #1a1a1a; --eOS-black-900: #000000; --eOS-silver-100: #fafafa; --eOS-silver-300: #d4d4d4; --eOS-silver-500: #abacae; --eOS-silver-700: #7e8087; --eOS-silver-900: #555761; --eOS-lime-100: #d1ff82; --eOS-lime-300: #9bdb4d; --eOS-lime-500: #68b723; --eOS-lime-700: #3a9104; --eOS-lime-900: #206b00; --eOS-mint-100: #89ffdd; --eOS-mint-300: #43d6b5; --eOS-mint-500: #28bca3; --eOS-mint-700: #0e9a83; --eOS-mint-900: #007367; --eOS-strawberry-100: #ff8c82; --eOS-strawberry-300: #ed5353; --eOS-strawberry-500: #c6262e; --eOS-strawberry-700: #a10705; --eOS-strawberry-900: #7a0000; --eOS-banana-100: #fff394; --eOS-banana-300: #ffe16b; --eOS-banana-500: #f9c440; --eOS-banana-700: #d48e15; --eOS-banana-900: #ad5f00; } ```
Zonnev commented 8 months ago

@duong-db Thanks so much for your great work for the userContent.css file and I've changed colors of the common dialog windows too in the latest update!

duong-db commented 8 months ago

Best wishes for your work on this wonderful project!