fix dark theme fonts, update metadata
This commit is contained in:
parent
438c2e282b
commit
699246a2c2
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "fluent-reader",
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.1",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue