fix dark theme fonts, update metadata

This commit is contained in:
Bruce Liu 2022-06-08 11:37:20 -07:00
parent 438c2e282b
commit 699246a2c2
7 changed files with 31 additions and 15 deletions

View File

@ -3,8 +3,7 @@
html,
body {
margin: 0;
font-family: "Segoe UI", "Source Han Sans Regular",
sans-serif;
font-family: "Segoe UI", "Source Han Sans Regular", sans-serif;
}
body {
padding: 12px 96px 32px;

View File

@ -49,8 +49,7 @@ body.darwin {
html,
body {
background-color: transparent;
font-family: "Segoe UI", "Source Han Sans Regular",
sans-serif;
font-family: "Segoe UI", "Source Han Sans Regular", sans-serif;
height: 100%;
overflow: hidden;
margin: 0;

View File

@ -1,5 +1,5 @@
appId: DevHYLiu.FluentReader
buildVersion: 25
buildVersion: 26
productName: Fluent Reader
copyright: Copyright © 2020 Haoyuan Liu
files:
@ -29,6 +29,7 @@ mac:
- it
- nl
- ko
- ru
minimumSystemVersion: 10.14.0
mas:
entitlements: build/entitlements.mas.plist

View File

@ -26,6 +26,7 @@ mac:
- it
- nl
- ko
- ru
win:
target:
- nsis
@ -49,6 +50,7 @@ appx:
- it
- nl
- ko
- ru
showNameOnTiles: true
setBuildNumber: true
nsis:

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "fluent-reader",
"version": "1.1.0",
"version": "1.1.1",
"lockfileVersion": 2,
"requires": true,
"packages": {

View File

@ -1,6 +1,6 @@
{
"name": "fluent-reader",
"version": "1.1.0",
"version": "1.1.1",
"description": "Modern desktop RSS reader",
"main": "./dist/electron.js",
"scripts": {

View File

@ -7,8 +7,7 @@ import { SourceTextDirection } from "./models/source"
let lightTheme: IPartialTheme = {
defaultFontStyle: {
fontFamily:
'"Segoe UI", "Source Han Sans Regular", sans-serif',
fontFamily: '"Segoe UI", "Source Han Sans Regular", sans-serif',
},
}
let darkTheme: IPartialTheme = {
@ -42,13 +41,29 @@ let darkTheme: IPartialTheme = {
}
export function setThemeDefaultFont(locale: string) {
switch(locale) {
case "zh-CN": lightTheme.defaultFontStyle.fontFamily = '"Segoe UI", "Source Han Sans SC Regular", "Microsoft YaHei", sans-serif'; break
case "zh-TW": lightTheme.defaultFontStyle.fontFamily = '"Segoe UI", "Source Han Sans TC Regular", "Microsoft JhengHei", sans-serif'; break
case "ja": lightTheme.defaultFontStyle.fontFamily = '"Segoe UI", "Source Han Sans JP Regular", "Yu Gothic UI", sans-serif'; break
case "ko": lightTheme.defaultFontStyle.fontFamily = '"Segoe UI", "Source Han Sans KR Regular", "Malgun Gothic", sans-serif'; break
default: lightTheme.defaultFontStyle.fontFamily = '"Segoe UI", "Source Han Sans Regular", sans-serif'
switch (locale) {
case "zh-CN":
lightTheme.defaultFontStyle.fontFamily =
'"Segoe UI", "Source Han Sans SC Regular", "Microsoft YaHei", sans-serif'
break
case "zh-TW":
lightTheme.defaultFontStyle.fontFamily =
'"Segoe UI", "Source Han Sans TC Regular", "Microsoft JhengHei", sans-serif'
break
case "ja":
lightTheme.defaultFontStyle.fontFamily =
'"Segoe UI", "Source Han Sans JP Regular", "Yu Gothic UI", sans-serif'
break
case "ko":
lightTheme.defaultFontStyle.fontFamily =
'"Segoe UI", "Source Han Sans KR Regular", "Malgun Gothic", sans-serif'
break
default:
lightTheme.defaultFontStyle.fontFamily =
'"Segoe UI", "Source Han Sans Regular", sans-serif'
}
darkTheme.defaultFontStyle.fontFamily =
lightTheme.defaultFontStyle.fontFamily
applyThemeSettings()
}
export function setThemeSettings(theme: ThemeSettings) {