Skip to content

Commit

Permalink
Add light theme (programmatically)
Browse files Browse the repository at this point in the history
  • Loading branch information
Waujito committed Mar 16, 2024
1 parent 220533b commit e142c26
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 6 deletions.
38 changes: 38 additions & 0 deletions web_frontend/assets/scss/library.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// dark colors
$dark-bg0: #181818;
$dark-bg1: #1f1f1f;
$dark-bg2: #2b2b2b;
Expand All @@ -10,6 +11,22 @@ $dark-hov0: #343434;

$dark-popupMask-cl: rgba(255, 255, 255, 0.1);

// light colors

$light-bg0: #ffffff;
$light-bg1: #cccccc;
$light-bg2: #ffffff;
$light-bg4: #e1e1e1;

$light-cl0: #181818;
$light-cl1: #1f1f1f;
$light-cl2: #2b2b2b;

$light-hov0: #aeaeae;

$light-popupMask-cl: rgba(0, 0, 0, 0.2);

// theme based colors
$bg-func: $dark-bg0;
$cl-func: $dark-cl1;
$hov-func: $dark-hov0;
Expand All @@ -19,10 +36,31 @@ $bg-chat: $dark-bg1;
$bg-message: $dark-bg2;
$cl-message: $dark-cl2;

$bg-func-active: $dark-bg2;

$cl-ftext: $dark-cl0;

$mask-color: $dark-popupMask-cl;

//

// $bg-func: $light-bg0;
// $cl-func: $light-cl1;
// $hov-func: $light-hov0;

// $bg-chat: $light-bg1;

// $bg-message: $light-bg2;
// $cl-message: $light-cl2;

// $bg-func-active: $light-bg4;

// $cl-ftext: $light-cl0;

// $mask-color: $light-popupMask-cl;

//

$green_button_normal: #2c9f4b;
$green_button_hover: #237e3b;
$green_button_pressed: #1b612e;
Expand Down
2 changes: 1 addition & 1 deletion web_frontend/components/board/ChatBodyComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const showInfo = ref<boolean>(false);
align-items: center;
background-color: $bg-func;
border-left: 2px solid $bg-message;
border-left: 2px solid $bg-func-active;
cursor: pointer;
}
Expand Down
8 changes: 4 additions & 4 deletions web_frontend/components/board/ChatListComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ function chatCreated(chat: Chat) {
user-select: none;
&.activeChat {
background-color: $bg-message;
background-color: $bg-func-active;
}
&:hover {
background-color: $dark-hov0;
background-color: $hov-func;
}
}
Expand All @@ -89,11 +89,11 @@ function chatCreated(chat: Chat) {
align-items: center;
cursor: pointer;
background-color: $bg-message;
background-color: $bg-func-active;
margin-top: 10px;
&:hover {
background-color: $dark-hov0;
background-color: $hov-func;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion web_frontend/components/board/SendMessageComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function sendButton() {
background-color: $bg-func;
color: $cl-func;
border-left: 2px solid $bg-message;
border-left: 2px solid $bg-func-active;
.senderInfo {
height: 50px;
Expand Down

0 comments on commit e142c26

Please sign in to comment.