Skip to content

Commit

Permalink
Merge pull request #73 from mbaraa/refactor/themes-stuff
Browse files Browse the repository at this point in the history
Refactor: Themes Fixes
  • Loading branch information
mbaraa authored Jun 10, 2024
2 parents afd071c + 09758eb commit f5d6a87
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 30 deletions.
12 changes: 4 additions & 8 deletions app/static/css/themes/black.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@
--secondary-color-30: #ffffff4c;
--secondary-color-69: #ffffffb0;

--accent-color: #d3fcbf;
--accent-color-20: #d3fcbf33;
--accent-color-30: #d3fcbf4c;
--accent-color-69: #d3fcbfb0;
}

body {
background-color: #131313;
--accent-color: #236104;
--accent-color-20: #23610433;
--accent-color-30: #2361044c;
--accent-color-69: #236104b0;
}
4 changes: 0 additions & 4 deletions app/static/css/themes/dank.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,3 @@
--accent-color-30: #0000004c;
--accent-color-69: #000000b0;
}

body {
background-color: #305922;
}
4 changes: 0 additions & 4 deletions app/static/css/themes/white.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,3 @@
--accent-color-30: #d5ffc14c;
--accent-color-69: #d5ffc1b0;
}

body {
background-color: #dedede;
}
2 changes: 1 addition & 1 deletion app/views/components/header/header.templ
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ templ Header() {
class={
"bg-primary", "p-[15px]", "md:p-[10px]", "text-secondary", "w-full",
"flex", "flex-col", "md:flex-row", "justify-between", "items-center",
"gap-y-5",
"gap-y-5", "border-b", "border-b-secondary",
}
>
<div class={ "w-full", "md:w-fit" }>
Expand Down
7 changes: 5 additions & 2 deletions app/views/components/mobilenav/mobilenav.templ
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ import "dankmuzikk/views/icons"

templ MobileNav() {
<div
class={ "fixed", "bottom-0", "left-0", "h-auto", "w-full" }
class={ "fixed", "bottom-0", "left-0", "h-auto", "w-full", }
>
<nav
class={ "bg-primary", "h-[55px]", "m-[5px]", "rounded-[10px]", "flex", "justify-center", "items-center" }
class={
"bg-primary", "h-[55px]", "m-[5px]", "rounded-[10px]", "flex", "justify-center",
"items-center", "shadow-sm", "shadow-secondary",
}
>
<ul class={ "w-full", "m-0", "p-5", "px-14", "list-none", "flex", "justify-between" }>
<li>
Expand Down
2 changes: 1 addition & 1 deletion app/views/components/player/desktop_player.templ
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ templ desktopPlayer() {
class={
"fixed", "bottom-0", "w-screen", "h-[90px]", "rounded-t-3xl", "text-secondary",
"font-Ubuntu", "flex", "items-center", "justify-between", "gap-x-4", "p-[20px]",
"bg-secondary-trans-20", "backdrop-blur-lg", "shadow-t-md", "shadow-t-accent",
"bg-secondary-trans-20", "backdrop-blur-lg", "shadow-md", "shadow-secondary",
}
>
<!-- details -->
Expand Down
2 changes: 1 addition & 1 deletion app/views/components/player/mobile_player.templ
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ templ mobilePlayer() {
<div
id="ze-player"
class={
"bg-secondary-trans-20", "backdrop-blur-lg", "shadow-sm", "shadow-accent",
"bg-secondary-trans-20", "backdrop-blur-lg", "shadow-sm", "shadow-secondary",
"mx-[5px]", "rounded-[15px]", "text-secondary", "collapsed",
}
>
Expand Down
12 changes: 4 additions & 8 deletions app/views/components/themeswitch/themeswitch.templ
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ script changeTheme(themeName string) {
accent20: "#00000033",
accent30: "#0000004c",
accent69: "#000000b0",
bg: "#305922",
},
black: {
primary: "#000000",
Expand All @@ -77,11 +76,10 @@ script changeTheme(themeName string) {
secondary20: "#ffffff33",
secondary30: "#ffffff4c",
secondary69: "#ffffffb0",
accent: "#d3fcbf",
accent20: "#d3fcbf33",
accent30: "#d3fcbf4C",
accent69: "#d3fcbfB0",
bg: "#131313",
accent: "#236104",
accent20: "#23610433",
accent30: "#2361044C",
accent69: "#236104B0",
},
white: {
primary: "#ffffff",
Expand All @@ -96,7 +94,6 @@ script changeTheme(themeName string) {
accent20: "#d5ffc133",
accent30: "#d5ffc14c",
accent69: "#d5ffc1b0",
bg: "#ededed",
},
};

Expand All @@ -118,6 +115,5 @@ script changeTheme(themeName string) {
style.setProperty('--accent-color-20', theme.accent20);
style.setProperty('--accent-color-30', theme.accent30);
style.setProperty('--accent-color-69', theme.accent69);
document.body.style.backgroundColor = theme.bg;
//document.getElementById("popover-theme-switcher").style.display = "none";
}
2 changes: 1 addition & 1 deletion app/views/layouts/default.templ
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ templ Default(title string, children ...templ.Component) {
</head>
<body
hx-ext="loading-states"
class={ "min-w-screen", "min-h-screen", "p-0", "m-0", "font-Ubuntu" }
class={ "min-w-screen", "min-h-screen", "p-0", "m-0", "font-Ubuntu", "bg-primary" }
>
@header.Header()
<div class="refresher">
Expand Down

0 comments on commit f5d6a87

Please sign in to comment.