forked from React-Group/interstellar_ai
Compare commits
9 commits
0009626e1d
...
c0c402039e
Author | SHA1 | Date | |
---|---|---|---|
c0c402039e | |||
fbd91fdcdb | |||
0af768f380 | |||
c7a55291a3 | |||
67b079c3e6 | |||
b3648e013a | |||
c7fdfa15cb | |||
7e1b4990fd | |||
ca868c9e12 |
2 changed files with 15 additions and 2 deletions
|
@ -516,6 +516,19 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
|
||||||
setValue={setBasicTextColor}
|
setValue={setBasicTextColor}
|
||||||
cssVariable=""
|
cssVariable=""
|
||||||
/>
|
/>
|
||||||
|
<FontSizeSetting
|
||||||
|
fontSize={fontSize}
|
||||||
|
setFontSize={setFontSize}
|
||||||
|
/>
|
||||||
|
<DropdownSetting
|
||||||
|
label="Font Family"
|
||||||
|
value={fontFamily}
|
||||||
|
setValue={(newFont) => {
|
||||||
|
setFontFamily(newFont);
|
||||||
|
document.documentElement.style.setProperty('--font-family', newFont);
|
||||||
|
}}
|
||||||
|
options={fontOptions}
|
||||||
|
/>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
|
@ -247,8 +247,8 @@ export const applyBasicCustomTheme = (
|
||||||
document.documentElement.style.setProperty('--popup-background-color', accentColor);
|
document.documentElement.style.setProperty('--popup-background-color', accentColor);
|
||||||
document.documentElement.style.setProperty('--pop-up-text', lightenColor(textColor, 80));
|
document.documentElement.style.setProperty('--pop-up-text', lightenColor(textColor, 80));
|
||||||
document.documentElement.style.setProperty('--input-border-color', primaryColor);
|
document.documentElement.style.setProperty('--input-border-color', primaryColor);
|
||||||
document.documentElement.style.setProperty('--font-family', "'Poppins', 'sans-serif'");
|
document.documentElement.style.setProperty('--font-family', localStorage.getItem("fontFamily") || "'Poppins', 'sans-serif'");
|
||||||
document.documentElement.style.setProperty('--font-size', '16px');
|
document.documentElement.style.setProperty('--font-size', localStorage.getItem("fontSize") || '16px');
|
||||||
};
|
};
|
||||||
|
|
||||||
// Helper function to darken a color (returns a darker version of the provided color)
|
// Helper function to darken a color (returns a darker version of the provided color)
|
||||||
|
|
Loading…
Reference in a new issue