You've already forked AstralRinth
forked from didirus/AstralRinth
Standing up global settings page. (#63)
* Adds markup to Settings page. * Fixes card styling. Makes theme a dropdown. Fleshes out theme store and helpers. * Settings wired up to backend. Omorphia package bumped. * settings not syncing * Further polishes Global Settings. * Post-merge cleanup. * Cleans up code. Ensures Java versions are present. * Wires up auto-detect modal. Wires up Java version browse. Styling updates. * Styling inputs. Adjusts modals. * Removes theme helpers. Removes unnecessary classes. * Always displays settings save btn. Watch code removed. New Card added. * Cleans up merge from master. Adds AnimatedLogo to settings. * Installs updated Omorphia. Removes unnecessary styles. Fixes loading logo position. * Starts wiring up theming to settings. Adds Tauri command to get just theme. * Settings page polish. allowList updated. * Condenses modals into one. Implements JRE checking. * Updates Omorphia package. Removes unnecessary styles. * Removes get_theme. Styling changes. * Changes appbar background for light-mode. * Fixes * fix color with var --------- Co-authored-by: thesuzerain <wverchere@gmail.com> Co-authored-by: Jai A <jaiagr+gpg@pm.me>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script setup>
|
||||
import { ref, watch } from 'vue'
|
||||
import { ref, onMounted } from 'vue'
|
||||
import { RouterView, RouterLink } from 'vue-router'
|
||||
import {
|
||||
ChevronLeftIcon,
|
||||
@@ -12,15 +12,14 @@ import {
|
||||
} from 'omorphia'
|
||||
import { useTheming } from '@/store/state'
|
||||
import AccountsCard from '@/components/ui/AccountsCard.vue'
|
||||
import { toggleTheme } from '@/helpers/theme'
|
||||
import { list } from '@/helpers/profile'
|
||||
import { get } from '@/helpers/settings'
|
||||
|
||||
const themeStore = useTheming()
|
||||
|
||||
toggleTheme(themeStore.darkTheme)
|
||||
|
||||
watch(themeStore, (newState) => {
|
||||
toggleTheme(newState.darkTheme)
|
||||
onMounted(async () => {
|
||||
const { theme } = await get()
|
||||
themeStore.setThemeState(theme)
|
||||
})
|
||||
|
||||
const installedMods = ref(0)
|
||||
@@ -81,25 +80,17 @@ list().then(
|
||||
flex-direction: row;
|
||||
overflow: hidden;
|
||||
|
||||
.router-view {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.view {
|
||||
margin-left: 5rem;
|
||||
width: calc(100% - 5rem);
|
||||
height: calc(100%);
|
||||
width: 100%;
|
||||
|
||||
.appbar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background: #40434a;
|
||||
background: var(--color-super-raised-bg);
|
||||
text-align: center;
|
||||
padding: 0.5rem 1rem;
|
||||
z-index: 11;
|
||||
|
||||
.navigation-controls {
|
||||
display: inherit;
|
||||
@@ -137,24 +128,44 @@ list().then(
|
||||
justify-content: flex-end;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.nav-container {
|
||||
position: absolute;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 100%;
|
||||
box-shadow: var(--shadow-inset-sm), var(--shadow-floating);
|
||||
padding: 1rem;
|
||||
.router-view {
|
||||
width: 100%;
|
||||
height: calc(100% - 2rem);
|
||||
overflow: auto;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.dark-mode {
|
||||
.nav-container {
|
||||
background: var(--color-bg);
|
||||
background: var(--color-bg) !important;
|
||||
}
|
||||
.pages-list {
|
||||
a.router-link-active {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.light-mode {
|
||||
.nav-container {
|
||||
box-shadow: var(--shadow-floating), var(--shadow-floating), var(--shadow-floating),
|
||||
var(--shadow-floating) !important;
|
||||
}
|
||||
}
|
||||
|
||||
.nav-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
z-index: 10;
|
||||
height: 100%;
|
||||
box-shadow: var(--shadow-inset-sm), var(--shadow-floating);
|
||||
padding: 1rem;
|
||||
background: var(--color-raised-bg);
|
||||
}
|
||||
|
||||
.pages-list {
|
||||
@@ -176,7 +187,7 @@ list().then(
|
||||
color: var(--color-base);
|
||||
|
||||
&.router-link-active {
|
||||
color: var(--color-accent-contrast);
|
||||
color: var(--color-contrast);
|
||||
background: var(--color-button-bg);
|
||||
}
|
||||
|
||||
@@ -208,14 +219,6 @@ list().then(
|
||||
}
|
||||
}
|
||||
|
||||
.dark-mode {
|
||||
.pages-list {
|
||||
a.router-link-active {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.instance-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -252,6 +255,10 @@ list().then(
|
||||
}
|
||||
|
||||
.settings {
|
||||
svg {
|
||||
color: var(--color-base) !important;
|
||||
}
|
||||
|
||||
a {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
Reference in New Issue
Block a user