Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
qiacheng authored Sep 26, 2024
2 parents 07058d4 + 4924092 commit e3a28f3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion WebUI/electron/electron-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type LocalSettings = {
type ThemeSettings = {
availableThemes: Theme[];
currentTheme: Theme;
};


type ModelPaths = {
llm: string,
Expand Down
1 change: 1 addition & 0 deletions WebUI/electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ function initEventHandle() {
return {
availableThemes: settings.availableThemes,
currentTheme:settings.currentTheme

};
});

Expand Down
1 change: 1 addition & 0 deletions WebUI/external/settings-dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
"port":56789,
"availableThemes": ["dark","lnl"],
"currentTheme": "lnl"

}
7 changes: 7 additions & 0 deletions WebUI/src/views/AppSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@
</template>
</drop-selector>
</div>
<div v-if="theme.availableThemes.length > 1" class="flex flex-col gap-2">
<p>Theme</p>
<div class="grid grid-cols-2 gap-2">
<radio-bolck class="uppercase" v-for="themeName in theme.availableThemes" :checked="theme.active === themeName" :text="themeName"
@click="() => theme.selected = themeName"></radio-bolck>
</div>
</div>
<div class="flex flex-col gap-2">
<p>{{ languages.SETTINGS_INFERENCE_DEVICE }}</p>
<div class="flex items-center gap-2 flex-wrap">
Expand Down

0 comments on commit e3a28f3

Please sign in to comment.