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

Natsumi 1.5.1 #14

Merged
merged 9 commits into from
Dec 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Configurable glass
  • Loading branch information
greeeen-dev committed Dec 21, 2024
commit 4891922da72ad7df0acca04a4a7aa8345945e727
5 changes: 5 additions & 0 deletions natsumi-config.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ as they use the correct format.
/* Accent color */
--natsumi-accent-color: var(--zen-primary-color);

/* Natsumi Glass Effect */
--glass-blur-radius: 10px;
--glass-shadow-size: 10px;
--glass-shadow-opacity: 75%;

/* Natsumi URLbar appear animations */
--urlbar-appear-animation-duration: 0.25s;
--urlbar-results-animation-duration: 0.5s;
Expand Down
4 changes: 2 additions & 2 deletions natsumi/modules/natsumi-findbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ their author(s) have been provided above the used code.
flex-wrap: wrap;
border-radius: var(--zen-border-radius);
background: var(--natsumi-glass-background) !important;
backdrop-filter: blur(10px);
backdrop-filter: blur(var(--natsumi-glass-blur-radius));
border: 1px solid light-dark(rgba(20, 20, 20, 0.2), rgba(235, 235, 235, 0.3)) !important;
opacity: 1;
transition: background 0.2s ease, opacity 0.2s ease, visibility 0.2s ease, top 0.2s ease, box-shadow 0.2s ease !important;
animation: initial-animation 0.2s ease;

/*noinspection CssInvalidFunction*/
@media not (-moz-bool-pref: "natsumi.theme.disable-glass-shadow") {
box-shadow: 0 0 10px color-mix(in srgb, var(--natsumi-colors-secondary) 75%, light-dark(black, white)) !important;
box-shadow: 0 0 var(--natsumi-glass-shadow-size) color-mix(in srgb, var(--natsumi-colors-secondary) var(--natsumi-glass-shadow-opacity), light-dark(black, white)) !important;
}

/* Restore old width */
Expand Down
4 changes: 2 additions & 2 deletions natsumi/modules/natsumi-urlbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -426,13 +426,13 @@ their author(s) have been provided above the used code.

/*noinspection CssInvalidFunction*/
#urlbar-background {
backdrop-filter: blur(10px);
backdrop-filter: blur(var(--natsumi-glass-blur-radius));
background: var(--natsumi-glass-background) !important;
transition: backdrop-filter 0.5s ease, background 0.5s ease;

/*noinspection CssInvalidFunction*/
@media not (-moz-bool-pref: "natsumi.theme.disable-glass-shadow") {
box-shadow: 0 0 10px color-mix(in srgb, var(--natsumi-colors-secondary) 75%, light-dark(black, white)) !important;
box-shadow: 0 0 var(--natsumi-glass-shadow-size) color-mix(in srgb, var(--natsumi-colors-secondary) var(--natsumi-glass-shadow-opacity), light-dark(black, white)) !important;
}

@media (-moz-bool-pref: "natsumi.urlbar.disable-transparency") {
Expand Down
4 changes: 3 additions & 1 deletion natsumi/modules/navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@ their author(s) have been provided above the used code.
#zen-appcontent-navbar-container {
background: var(--natsumi-glass-background) !important;
border: 1px solid light-dark(rgba(20, 20, 20, 0.2), rgba(235, 235, 235, 0.3)) !important;
backdrop-filter: blur(var(--natsumi-glass-blur-radius)) !important;

/*noinspection CssInvalidFunction*/
@media not (-moz-bool-pref: "natsumi.theme.disable-glass-shadow") {
box-shadow: 0 0 10px color-mix(in srgb, var(--natsumi-colors-secondary) 75%, light-dark(black, white)) !important;
backdrop-filter: none !important;
box-shadow: 0 0 var(--natsumi-glass-shadow-size) color-mix(in srgb, var(--natsumi-colors-secondary) var(--natsumi-glass-shadow-opacity), light-dark(black, white)) !important;
}

@media not (-moz-bool-pref: "natsumi.navbar.floating-navbar") {
Expand Down
3 changes: 3 additions & 0 deletions natsumi/modules/preload.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ Edit the natsumi-config.css file instead.

/* Glass effect */
--natsumi-glass-background: color-mix(in srgb, var(--natsumi-colors-secondary) 75%, transparent);
--natsumi-glass-blur-radius: var(--glass-blur-radius, 10px);
--natsumi-glass-shadow-size: var(--glass-shadow-size, 10px);
--natsumi-glass-shadow-opacity: var(--glass-shadow-opacity, 75%);
}

/* URL bar appear animation */
Expand Down
6 changes: 3 additions & 3 deletions natsumi/modules/sidebars.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ their author(s) have been provided above the used code.

@media (-moz-bool-pref: "natsumi.sidebar.panel-glass-effect") {
background-color: var(--natsumi-glass-background) !important;
backdrop-filter: blur(10px) !important;
backdrop-filter: blur(var(--natsumi-glass-blur-radius)) !important;
border: 1px solid light-dark(rgba(20, 20, 20, 0.2), rgba(235, 235, 235, 0.3)) !important;

/*noinspection CssInvalidFunction*/
@media not (-moz-bool-pref: "natsumi.theme.disable-glass-shadow") {
box-shadow: 0 0 10px color-mix(in srgb, var(--natsumi-colors-secondary) 75%, light-dark(black, white)) !important;
box-shadow: 0 0 var(--natsumi-glass-shadow-size) color-mix(in srgb, var(--natsumi-colors-secondary) var(--natsumi-glass-shadow-opacity), light-dark(black, white)) !important;
}

/*noinspection CssInvalidFunction*/
Expand Down Expand Up @@ -118,7 +118,7 @@ their author(s) have been provided above the used code.

/*noinspection CssInvalidFunction*/
@media not (-moz-bool-pref: "natsumi.theme.disable-glass-shadow") {
box-shadow: 0 0 10px color-mix(in srgb, var(--natsumi-colors-secondary) 75%, light-dark(black, white)) !important;
box-shadow: 0 0 var(--natsumi-glass-shadow-size) color-mix(in srgb, var(--natsumi-colors-secondary) var(--natsumi-glass-shadow-opacity), light-dark(black, white)) !important;
}
}

Expand Down
4 changes: 2 additions & 2 deletions natsumi/modules/web-panel.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ their author(s) have been provided above the used code.
/* Zen Sidebar transparency. May cause lag when URLbar is also opened. */

background: color-mix(in srgb, var(--natsumi-colors-tertiary) 80%, transparent) !important;
backdrop-filter: blur(10px);
backdrop-filter: blur(var(--natsumi-glass-blur-radius));

@media (-moz-bool-pref: "natsumi.sidebar.zen-sidebar-glass-effect") {
background: var(--natsumi-glass-background) !important;
border: 1px solid light-dark(rgba(20, 20, 20, 0.2), rgba(235, 235, 235, 0.3)) !important;

/*noinspection CssInvalidFunction*/
@media not (-moz-bool-pref: "natsumi.theme.disable-glass-shadow") {
box-shadow: 0 0 10px color-mix(in srgb, var(--natsumi-colors-secondary) 75%, light-dark(black, white)) !important;
box-shadow: 0 0 var(--natsumi-glass-shadow-size) color-mix(in srgb, var(--natsumi-colors-secondary) var(--natsumi-glass-shadow-opacity), light-dark(black, white)) !important;
}

/*noinspection CssInvalidFunction*/
Expand Down