Skip to content

Commit

Permalink
make lightmode somewhat better
Browse files Browse the repository at this point in the history
  • Loading branch information
Bowserinator committed Sep 26, 2023
1 parent a90f5ee commit d1e3b80
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 19 deletions.
2 changes: 0 additions & 2 deletions TODO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ responsive mobile
- fix share modal on phone
- different ui on phone - click on user to show dropdown popped from bottom

better light mode

----
music player:
- create playlists - left nav with playlists
Expand Down
6 changes: 4 additions & 2 deletions assets/variables.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
$secondary-text-opacity: 0.7;

:root {
--border-color: #444;
--secondary-text-opacity: 0.7;
}

.v-theme--light {
--border-color: #ccc;
--secondary-text-opacity: 1;
--v-border-opacity: 0.24;
--v-medium-emphasis-opacity: 0.8;
}

$pfp-size-tile: 50px;
Expand Down
2 changes: 1 addition & 1 deletion components/ShareModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ export default {
}

&__username {
opacity: $secondary-text-opacity;
opacity: var(--secondary-text-opacity);
font-size: 0.9rem;
}

Expand Down
2 changes: 1 addition & 1 deletion components/board/Board.vue
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export default {
}
&__desc {
opacity: $secondary-text-opacity;
opacity: var(--secondary-text-opacity);
}
}
</style>
6 changes: 5 additions & 1 deletion components/board/LeftNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<NuxtLink v-for="board in boards" :key="board.id" :to="`/board/board?id=${board.id}`" @click="hideIfPhone()">
<div
class="hoverable hover-list-item left-nav__list-item left-nav__board-item
[ pl-3 text-truncate text-medium-emphasis ]"
[ pl-3 text-truncate subtitle ]"
>
<v-icon icon="mdi-subdirectory-arrow-right" />{{ board.name }}
</div>
Expand Down Expand Up @@ -150,6 +150,10 @@ export default {
<style lang="scss" scoped>
@import "~/assets/variables.scss";
.subtitle {
opacity: var(--secondary-text-opacity);
}
.toggle-btn {
position: fixed;
left: $left-nav-width-pc + 15px;
Expand Down
9 changes: 6 additions & 3 deletions components/pin/Link.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

<v-btn
v-for="b in downloadContentArray" :key="b.strategy"
variant="tonal" size="small"
flat color="teal-lighten-3"
:variant="isLightTheme ? 'flat' : 'tonal'" size="small"
flat :color="isLightTheme ? 'teal-lighten-1' : 'teal-lighten-3'"
:href="'/files/site_downloads/' + b.url"
target="_blank"
class="mb-1 mr-1" height="30"
Expand All @@ -24,6 +24,8 @@
</template>

<script>
import { useOptionStore } from '~/store/optionStore.js';
export default {
props: {
content: {
Expand Down Expand Up @@ -70,7 +72,8 @@ export default {
}[strategy]
}
});
}
},
isLightTheme() { return !useOptionStore(this.$pinia).dark_theme; }
},
watch: {
content() {
Expand Down
2 changes: 1 addition & 1 deletion components/pin/Modal.client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,6 @@ export default {
@import "~/assets/variables.scss";

.last-edited {
opacity: $secondary-text-opacity;
opacity: var(--secondary-text-opacity);
}
</style>
4 changes: 2 additions & 2 deletions components/pin/Pin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ export default {
}
&__creator {
opacity: $secondary-text-opacity
opacity: var(--secondary-text-opacity);
}
&__icon-row {
Expand Down Expand Up @@ -574,7 +574,7 @@ export default {
.pin-tile__timestamp {
display: inline-block;
font-size: 0.75rem;
opacity: $secondary-text-opacity;
opacity: var(--secondary-text-opacity);
}
.v-btn {
Expand Down
2 changes: 1 addition & 1 deletion components/ui/AppNavbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ $popout-gap: 5px;
font-size: 1.2rem;
}
&__user-id {
opacity: $secondary-text-opacity;
opacity: var(--secondary-text-opacity);
margin-top: -2px;
}
Expand Down
4 changes: 2 additions & 2 deletions pages/board/board.vue
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ export default {
}
}
.subtitle { opacity: $secondary-text-opacity; }
.subtitle { opacity: var(--secondary-text-opacity); }
.bulk-pin-edits {
position: fixed;
Expand Down Expand Up @@ -1033,7 +1033,7 @@ export default {
// Board properties modal
.board-properties {
color: rgb(var(--v-theme-on-surface), $secondary-text-opacity);
color: rgb(var(--v-theme-on-surface), var(--secondary-text-opacity));
&__prop {
width: 70px;
Expand Down
2 changes: 1 addition & 1 deletion pages/login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default {
}
.subtitle {
opacity: $secondary-text-opacity;
opacity: var(--secondary-text-opacity);
}
.login-container {
Expand Down
4 changes: 2 additions & 2 deletions plugins/vuetify.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ export default defineNuxtPlugin(nuxtApp => {
warning: colors.amber.base,
error: colors.deepOrange.accent4,
success: colors.green.accent3,
background: '#ffffff',
surface: '#f7f7f7',
background: '#fcfcfc', // '#f7f7f7',
surface: '#ffffff',
'background-light': '#f2f2f2'
}
},
Expand Down

0 comments on commit d1e3b80

Please sign in to comment.