Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit 1f3dc35

Browse files
Merge pull request #1101 from ssbc/use-system-font
Use system font
2 parents ba97e35 + 3997584 commit 1f3dc35

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/main-window.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ module.exports = function (config) {
150150
h('style', {
151151
innerHTML: computed(api.settings.obs.get('patchwork.fontFamily'), family => {
152152
if (family) {
153-
return 'body, button, input, select, textarea { font-family: ' + family + ';}'
153+
return 'body, input, select { font-family: ' + family + ';}'
154154
}
155155
})
156156
})

styles/base/base.mcss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ a {
4545
* {
4646
box-sizing: border-box
4747
}
48+
html, input, select {
49+
font-family: system-ui, sans-serif
50+
}
4851
::-webkit-file-upload-button {
4952
font-family: inherit
5053
}

styles/base/main-window.mcss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ MainWindow {
7676
padding: 4px 10px
7777
border-radius: 3px
7878
font-size: 120%
79-
font-weight: 200
8079
cursor: pointer
8180
margin-left: 8px
8281
text-decoration: none !important
@@ -121,7 +120,6 @@ MainWindow {
121120
text-align: center
122121
font-size: 20px
123122
letter-spacing: 1px
124-
font-weight: 200
125123
-webkit-app-region: drag
126124
position: relative
127125
span.title {

0 commit comments

Comments
 (0)