Skip to content

Commit

Permalink
Revert "cleanup: remove frosted option (#3)" (#6)
Browse files Browse the repository at this point in the history
This reverts commit 031e4ba.
  • Loading branch information
EdenQwQ authored Jun 21, 2024
1 parent 9f1d3b7 commit 11231f3
Show file tree
Hide file tree
Showing 34 changed files with 47 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pip install -r requirements.txt
```bash
$ python generate.py --help
usage: generate.py [-h] [--accent [accent color]]
[--bg-alpha [background alpha]]
[--bg-alpha [background alpha]] [--frosted frosted effect]
[--outer-gap [outer gap size]]
[--inner-gap [inner gap size]]
[--active-hint [active hint size]]
Expand All @@ -101,6 +101,8 @@ options:
The accent color to use for the theme.
--bg-alpha [background alpha], -b [background alpha]
The alpha value of the background color.
--frosted frosted effect, -f frosted effect
Whether to use frosted glass effect for the theme.
--outer-gap [outer gap size], -o [outer gap size]
The size of the outer gap.
--inner-gap [inner gap size], -i [inner gap size]
Expand Down
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Frappe-Blue.ron
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
blue: 0.42745098,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Frappe-Green.ron
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
blue: 0.42745098,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Frappe-Lavender.ron
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
blue: 0.42745098,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Frappe-Mauve.ron
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
blue: 0.42745098,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Frappe-Peach.ron
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
blue: 0.42745098,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Frappe-Pink.ron
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
blue: 0.42745098,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Frappe-Red.ron
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
blue: 0.42745098,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Frappe-Yellow.ron
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
blue: 0.42745098,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Latte-Blue.ron
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@
blue: 0.96078431,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Latte-Green.ron
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@
blue: 0.16862745,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Latte-Lavender.ron
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@
blue: 0.99215686,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Latte-Mauve.ron
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@
blue: 0.93725490,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Latte-Peach.ron
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@
blue: 0.04313725,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Latte-Pink.ron
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@
blue: 0.79607843,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Latte-Red.ron
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@
blue: 0.22352941,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Latte-Yellow.ron
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@
blue: 0.11372549,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Macchiato-Blue.ron
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
blue: 0.39215686,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Macchiato-Green.ron
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
blue: 0.39215686,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Macchiato-Lavender.ron
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
blue: 0.39215686,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Macchiato-Mauve.ron
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
blue: 0.39215686,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Macchiato-Peach.ron
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
blue: 0.39215686,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Macchiato-Pink.ron
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
blue: 0.39215686,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Macchiato-Red.ron
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
blue: 0.39215686,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Macchiato-Yellow.ron
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
blue: 0.39215686,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Mocha-Blue.ron
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
blue: 0.35294118,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Mocha-Green.ron
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
blue: 0.35294118,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Mocha-Lavender.ron
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
blue: 0.35294118,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Mocha-Mauve.ron
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
blue: 0.35294118,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Mocha-Peach.ron
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
blue: 0.35294118,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Mocha-Pink.ron
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
blue: 0.35294118,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Mocha-Red.ron
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
blue: 0.35294118,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
1 change: 1 addition & 0 deletions cosmic-settings/Catppuccin-Mocha-Yellow.ron
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
blue: 0.35294118,
alpha: 1.0,
)),
is_frosted: false,
gaps: (0, 8),
active_hint: 3,
)
13 changes: 12 additions & 1 deletion generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@
dest="bg_alpha",
help="The alpha value of the background color.",
)
parser.add_argument(
"--frosted",
"-f",
type=bool,
metavar="frosted effect",
dest="is_frosted",
default=False,
help="Whether to use frosted glass effect for the theme.",
)
parser.add_argument(
"--outer-gap",
"-o",
Expand Down Expand Up @@ -87,6 +96,7 @@
flavor = args.flavor
accent = args.accent
bg_alpha = args.bg_alpha
is_frosted = args.is_frosted
outer_gap_size = args.outer_gap_size
inner_gap_size = args.inner_gap_size
active_hint_size = args.active_hint_size
Expand Down Expand Up @@ -229,7 +239,8 @@
)),"""
)
print(
f""" gaps: ({outer_gap_size}, {inner_gap_size}),
f""" is_frosted: {"true" if is_frosted else "false"},
gaps: ({outer_gap_size}, {inner_gap_size}),
active_hint: {active_hint_size},
)"""
)

0 comments on commit 11231f3

Please sign in to comment.