feat: Add theming #8

Merged
justtemmie merged 3 commits from theming into main 2025-07-03 17:14:07 +00:00
Owner

There is no settings menu for this, that will be made sometime in the future.

I just want this merged ASAP so that future commits can use variables instead of hard coded colours

is the way i modified app.vue acceptable?

There is no settings menu for this, that will be made sometime in the future. I just want this merged ASAP so that future commits can use variables instead of hard coded colours is the way i modified app.vue acceptable?
justtemmie added the
Kind/Feature
Priority
High
labels 2025-07-02 21:52:27 +00:00
sauceyred was assigned by justtemmie 2025-07-02 21:52:27 +00:00
justtemmie added 1 commit 2025-07-02 21:52:27 +00:00
feat: Add theming, no settings menu yet
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful
8033fd27e1
sauceyred approved these changes 2025-07-03 16:56:41 +00:00
sauceyred left a comment
Owner

Fix what I pointed out in the comments and it's good to go.

Fix what I pointed out in the comments and it's good to go.
app.vue Outdated
@ -1,5 +1,6 @@
<template>
<div>
<link :href="'/themes/' + current_theme + '.css'" rel="stylesheet" type="text/css"></link>
Owner

Use useHead() in <script> rather than <link> in the body.

Use `useHead()` in `<script>` rather than `<link>` in the body.
@ -9,21 +10,20 @@
const banner = useState("banner", () => false);
let current_theme = "dark" // default theme
Owner

Use pascalCase, not snake_case.

Use pascalCase, not snake_case.
@ -10,2 +11,4 @@
const banner = useState("banner", () => false);
let current_theme = "dark" // default theme
const saved_theme = localStorage.getItem("selectedTheme");
Owner

Use pascalCase, not snake_case.

Use pascalCase, not snake_case.
justtemmie added 1 commit 2025-07-03 17:09:13 +00:00
Merge branch 'main' into theming
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful
41a0f3f14b
justtemmie added 1 commit 2025-07-03 17:13:50 +00:00
fix: properly insert stylesheet with useHead()
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful
ci/woodpecker/pull_request_closed/build-and-publish Pipeline was successful
126ae5e18d
justtemmie merged commit fea11660c3 into main 2025-07-03 17:14:07 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: gorb/frontend#8
No description provided.