Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Theme: PywalZen #839

Open
Axenide opened this issue Dec 4, 2024 · 1 comment
Open

Update Theme: PywalZen #839

Axenide opened this issue Dec 4, 2024 · 1 comment

Comments

@Axenide
Copy link
Contributor

Axenide commented Dec 4, 2024

Hi, I made a PR a while ago. Just in case, I'll leave it here: #708
Thanks!

@Axenide
Copy link
Contributor Author

Axenide commented Dec 12, 2024

Just in case I'll leave this here:
chrome.css

:root {
  --zen-primary-color: #d9d9d9 !important;
  --zen-colors-primary: var(--tab-loading-fill) !important;
  --zen-colors-secondary: var(--tab-loading-fill) !important;
  --toolbarbutton-icon-fill: var(--tab-loading-fill) !important;
}

:root:has(#theme-PywalZen[uc-pywalzen-darkness="default"]) {
  --zen-colors-tertiary: var(--lwt-accent-color) !important;
  --zen-main-browser-background: var(--lwt-accent-color) !important;
  --zen-themed-toolbar-bg: var(--lwt-accent-color) !important;
  #urlbar[breakout-extend="true"] > #urlbar-background {
    background: var(--lwt-accent-color) !important;
  }
}

:root:has(#theme-PywalZen[uc-pywalzen-darkness="dark"]) {
  --zen-colors-tertiary: color-mix(in srgb, var(--lwt-accent-color), black 25%) !important;
  --zen-main-browser-background: color-mix(in srgb, var(--lwt-accent-color), black 25%) !important;
  --zen-themed-toolbar-bg: color-mix(in srgb, var(--lwt-accent-color), black 25%) !important;
  #urlbar[breakout-extend="true"] > #urlbar-background {
    background: color-mix(in srgb, var(--lwt-accent-color), black 25%) !important;
  }
}

:root:has(#theme-PywalZen[uc-pywalzen-darkness="darker"]) {
  --zen-colors-tertiary: color-mix(in srgb, var(--lwt-accent-color), black 50%) !important;
  --zen-main-browser-background: color-mix(in srgb, var(--lwt-accent-color), black 50%) !important;
  --zen-themed-toolbar-bg: color-mix(in srgb, var(--lwt-accent-color), black 50%) !important;
  #urlbar[breakout-extend="true"] > #urlbar-background {
    background: color-mix(in srgb, var(--lwt-accent-color), black 50%) !important;
  }
}

:root:has(#theme-PywalZen[uc-pywalzen-darkness="yet-darker"]) {
  --zen-colors-tertiary: color-mix(in srgb, var(--lwt-accent-color), black 75%) !important;
  --zen-main-browser-background: color-mix(in srgb, var(--lwt-accent-color), black 75%) !important;
  --zen-themed-toolbar-bg: color-mix(in srgb, var(--lwt-accent-color), black 75%) !important;
  #urlbar[breakout-extend="true"] > #urlbar-background {
    background: color-mix(in srgb, var(--lwt-accent-color), black 75%) !important;
  }
}

:root:has(#theme-PywalZen[uc-pywalzen-darkness="pitch-black"]) {
  --zen-colors-tertiary: black !important;
  --zen-main-browser-background: black !important;
  --zen-themed-toolbar-bg: black !important;
  #urlbar[breakout-extend="true"] > #urlbar-background {
    background: black !important;
  }
}

#urlbar:not([focused="true"]):not([breakout-extend="true"]) > #urlbar-background {
  background: color-mix(in srgb, light-dark(#fff, var(--zen-colors-secondary)) 35%, transparent 65%) !important;
}

#commonDialogWindow {
  background-color: black !important;
}

preferences.json

[
    {
        "property": "uc.pywalzen.darkness",
        "label": "Darkness level",
        "type": "dropdown",
        "defaultValue": "default",
        "options": [
            {"value": "default", "label": "Default"},
            {"value": "dark", "label": "Dark"},
            {"value": "darker", "label": "Darker"},
            {"value": "yet-darker", "label": "Yet darker"},
            {"value": "pitch-black", "label": "Pitch black"}
        ],
        "disabledOn": []
    }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant