aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-06-04 15:19:38 +0200
committerlonkaars <loek@pipeframe.xyz>2023-06-04 15:19:38 +0200
commit2f5ecfcd737cdf8052c01f2547e810dc22f35425 (patch)
tree522a92d54bef6fa11451f170ce50c59fb2b4034d
parentea3be098bbb682bb0c155534a9fffc09a559cb15 (diff)
create crappy discord theme
-rw-r--r--.config/BetterDiscord/themes/flat.theme.css45
-rw-r--r--.config/BetterDiscord/themes/glass.theme.css40
-rwxr-xr-x.local/share/bin/mode34
3 files changed, 79 insertions, 40 deletions
diff --git a/.config/BetterDiscord/themes/flat.theme.css b/.config/BetterDiscord/themes/flat.theme.css
new file mode 100644
index 0000000..d1fa2fe
--- /dev/null
+++ b/.config/BetterDiscord/themes/flat.theme.css
@@ -0,0 +1,45 @@
+/**
+ * @name flat
+ * @author lonkaars
+ * @version 0
+*/
+
+/** this is a lazy theme, do not report bugs */
+
+/* debug colors:
+.theme-dark, .theme-light {
+ --background-primary: #f0f;
+ --background-secondary: #ff0;
+ --background-secondary-alt: #ff8;
+ --background-tertiary: #0f0;
+ --text-primary: #000;
+ --text-secondary: #00f;
+ --accent: #0ff;
+ --accent-alt: #8ff;
+ --error: #f00;
+ --error-alt: #f88;
+}
+*/
+
+:root, .theme-dark, .theme-light {
+ --channeltextarea-background: var(--background-primary);
+ --modal-background: var(--background-primary);
+ --modal-footer-background: var(--background-secondary);
+ --channels-default: var(--text-primary);
+ --interactive-muted: var(--text-secondary);
+ --interactive-normal: var(--text-primary);
+ --channel-icon: var(--text-primary);
+ --header-primary: var(--text-primary);
+ --header-secondary: var(--text-secondary);
+ --brand-experiment: var(--accent);
+ --background-floating: var(--background-tertiary);
+ --status-danger: var(--error);
+ --brand-experiment-360: var(--accent-alt);
+ --text-normal: var(--text-primary);
+ --input-background: var(--background-tertiary);
+ --button-danger-background: var(--error);
+ --scrollbar-auto-thumb: var(--background-tertiary);
+ --scrollbar-auto-track: var(--background-secondary);
+ --background-modifier-selected: var(--background-tertiary);
+}
+
diff --git a/.config/BetterDiscord/themes/glass.theme.css b/.config/BetterDiscord/themes/glass.theme.css
deleted file mode 100644
index a6dfb72..0000000
--- a/.config/BetterDiscord/themes/glass.theme.css
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * @name Glass
- * @author Loekaars#8205
- * @version 1.0.0
- * @description Transparency required
-*/
-
-body #app-mount,
-body #app-mount .da-app .da-app,
-body #app-mount .da-app .da-app .da-layers .da-layer,
-.da-scroller,
-.da-bg,
-.da-container > nav {
- background: transparent !important;
-}
-
-.da-sidebar .da-panels .da-container,
-.da-sidebar .da-panels {
- background: transparent !important;
-}
-
-:root {
- --server-selected: transparent !important;
- --server-folders: var(--pywal-serverfolder-transparent) !important;
- --server-background: transparent !important;
-}
-
-.da-expandedFolderBackground {
- border-radius: 16px !important;
-}
-
-body,
-.da-sidebar {
- background: var(--pywal-serverfolder-transparent) !important;
-}
-
-.da-folder {
- background: transparent !important;
-}
-
diff --git a/.local/share/bin/mode b/.local/share/bin/mode
index 97259fb..39aed52 100755
--- a/.local/share/bin/mode
+++ b/.local/share/bin/mode
@@ -223,6 +223,39 @@ EOF
echo "$conf" | cat - ~/.config/nvim/lightline-base.vim > ~/.config/nvim/lightline.vim
}
+switch_discord() {
+ read -r -d '' conf << EOF
+/**
+ * @name mode
+ * @author mode
+ * @version 0
+*/
+
+/* AUTOMATICALLY GENERATED, DO NOT EDIT */
+
+.theme-dark, .theme-light {
+ --background-primary: $(get_color background);
+ --background-secondary: $(get_color background);
+ --background-secondary-alt: $(get_color background);
+ --text-primary: $(get_color foreground);
+ --text-secondary: $(get_color color15);
+ --accent: $(get_color color4);
+ --accent-alt: $(get_color color12);
+ --error: $(get_color color1);
+ --error-alt: $(get_color color9);
+}
+
+.theme-dark {
+ --background-tertiary: $(mix_rgb $(get_color background) '#000000' '0.7');
+}
+
+.theme-light {
+ --background-tertiary: $(get_color background);
+}
+EOF
+ echo "$conf" > ~/.config/BetterDiscord/themes/mode.theme.css
+}
+
reload_terms() {
read -r -d '' escape_msgs << EOF
\033]11;$(get_color background)\007
@@ -288,6 +321,7 @@ switch_cfgs() {
switch_startpage $1
switch_polybar $1
switch_vim_lightline $1
+ switch_discord $1
mkdir -p ~/.local/share/mode
echo $1 > ~/.local/share/mode/active