mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 05:29:20 +03:00
Allow user theme font selection #562
This commit is contained in:
parent
a9ea62abc2
commit
b690370557
43 changed files with 208 additions and 189 deletions
|
|
@ -22,6 +22,25 @@ addObservablesTo(themeBackground, {
|
|||
|
||||
export class UserSettingsThemes /*extends AbstractViewSettings*/ {
|
||||
constructor() {
|
||||
this.fontSansSerif = ThemeStore.fontSansSerif;
|
||||
this.fontSerif = ThemeStore.fontSerif;
|
||||
this.fontMono = ThemeStore.fontMono;
|
||||
ThemeStore.fontSansSerif.subscribe(value => {
|
||||
Remote.saveSettings(null, {
|
||||
fontSansSerif: value
|
||||
});
|
||||
});
|
||||
ThemeStore.fontSerif.subscribe(value => {
|
||||
Remote.saveSettings(null, {
|
||||
fontSerif: value
|
||||
});
|
||||
});
|
||||
ThemeStore.fontMono.subscribe(value => {
|
||||
Remote.saveSettings(null, {
|
||||
fontMono: value
|
||||
});
|
||||
});
|
||||
|
||||
this.theme = ThemeStore.theme;
|
||||
this.themes = ThemeStore.themes;
|
||||
this.themesObjects = ko.observableArray();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue