Skip to content

Commit

Permalink
Improved the darkmode shadows and scrollbars.
Browse files Browse the repository at this point in the history
  • Loading branch information
george-norton committed Jun 8, 2023
1 parent 0428582 commit fa58f1d
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 19 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Ploopy Headphones Toolbox is an application for configuring the filtering applied by the Ploopy Headphones DAC without having to rebuild the firmware.

![Screenshot Ploopy Headphones Toolbox.](screenshot.png)
![Screenshot Ploopy Headphones Toolbox.](screenshot-2.png)
![Dark mode screenshot Ploopy Headphones Toolbox.](screenshot-3.png)

To use this tool you will need to be running a firmware image build from the [headphones-toolbox branch](https://github.com/george-norton/headphones/tree/headphones-toolbox), prebuilt binaries are available [here](https://github.com/george-norton/headphones/releases/tag/headphones-toolbox-alpha-v1).

Expand Down
Binary file added screenshot-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshot-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/quasar-variables.sass
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ $dark : #1D1D1D
$positive : #21BA45
$negative : #C10015
$info : #31CCEC
$warning : #F2C037
$warning : #F2C037

$dark-shadow-color: #000000EE
55 changes: 37 additions & 18 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,20 @@
text-align: center;
}

.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: 0.75s;
}

.logo.tauri:hover {
filter: drop-shadow(0 0 2em #24c8db);
}

.row {
display: flex;
justify-content: center;
}

body.body--dark .q-header, body.body--dark .q-footer, body.body--dark .q-drawer {
body.body--dark .q-header,
body.body--dark .q-footer,
body.body--dark .q-drawer {
background-color: #0d47a1;
color: #ffffff;
box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.8), 0 0px 10px rgba(0, 0, 0, 0.6);
}

.q-item.q-router-link--active, .q-item--active {
.q-item.q-router-link--active,
.q-item--active {
color: #ffffff;
fill: #ffffff;
}
Expand Down Expand Up @@ -123,15 +114,18 @@ button {
.title-bar-lv1 {
background-color: #e0e0e0;
}

.title-bar-lv2 {
background-color: #eeeeee;
}

.graph {
background-color: #ffffff;
background-image:url('/graph_bg.svg');
background-image: url('/graph_bg.svg');
background-repeat: no-repeat;
background-size:contain;
background-size: contain;
}

@media (prefers-color-scheme: dark) {
:root {
color: #f6f6f6;
Expand Down Expand Up @@ -166,8 +160,33 @@ button {

.graph {
background-color: #2f2f2f;
background-image:url('/graph_bg_dark.svg');
background-image: url('/graph_bg_dark.svg');
background-repeat: no-repeat;
background-size:contain;
background-size: contain;
}

::-webkit-scrollbar {
height: 12px;
width: 14px;
background: transparent;
z-index: 12;
overflow: visible;
}

::-webkit-scrollbar-thumb {
width: 10px;
background-color: #c1c1c1;
border-radius: 10px;
z-index: 12;
border: 4px solid rgba(0, 0, 0, 0);
background-clip: padding-box;
transition: background-color .32s ease-in-out;
margin: 4px;
min-height: 32px;
min-width: 32px;
}

::-webkit-scrollbar-thumb:hover {
background: #c1c1c1;
}
}

0 comments on commit fa58f1d

Please sign in to comment.