Add setting to adjust textarea font size (#463)

This commit is contained in:
Chenlei Hu
2024-08-16 10:17:40 -04:00
committed by GitHub
parent 7468555c06
commit 479ca63e3c
4 changed files with 29 additions and 2 deletions

View File

@@ -106,6 +106,17 @@ export const useSettingStore = defineStore('setting', {
options: ['normal', 'small'],
defaultValue: window.innerWidth < 1600 ? 'small' : 'normal'
})
app.ui.settings.addSetting({
id: 'Comfy.TextareaWidget.FontSize',
name: 'Textarea widget font size',
type: 'slider',
defaultValue: 10,
attrs: {
min: 8,
max: 24
}
})
},
set<K extends keyof Settings>(key: K, value: Settings[K]) {