Skip to content

Commit 01cb1b9

Browse files
committed
[[launcher]] fixed menu handling, open apps in new window
1 parent 1778da4 commit 01cb1b9

File tree

4 files changed

+16
-9
lines changed

4 files changed

+16
-9
lines changed

docs/release_notes/2022.9.3-alpha.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22

33
## Fixes
44

5-
* Done a first-pass on the documentation, updating it for the new codebase.
5+
* **Docs:** Done a first-pass on the documentation, updating it for the new codebase.
6+
* **Launcher:** Fixed opening the launcher from the menu. Apps now open on a new window.
7+
* **Settings:** Cosmetic changes. Font size changing fixed.
8+
* **Post:** Changing font size on preferences work.

ui/core/kernel/prefs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ if (ipcRenderer) {
232232
ipcRenderer.on("preferences:reload", () => {
233233
console.log("Preferences changed on disk, reloading...")
234234
loadSavedData()
235+
patchfox.emit("preferences:changed")
235236
})
236237
}
237238

ui/packages/post/PostCard.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ const PostCard = {
1717
contentWarningsExpandByDefault === "collapsed"
1818

1919
patchfox.listen(
20-
"prefs:changed:textSize",
21-
(newSize) => (vnode.state.textSize = newSize)
22-
)
20+
"preferences:changed",
21+
() => {
22+
m.redraw()
23+
})
24+
2325

2426
vnode.state.key = Date.now()
2527
},
@@ -193,11 +195,11 @@ const PostCard = {
193195
])
194196
)
195197
),
196-
m("div.prose", { class: vnode.state.textSide }, m.trust(content)),
198+
m("div.prose", { class: vnode.state.textSize }, m.trust(content)),
197199
]),
198200
when(
199201
!hasContentWarning,
200-
m("div.prose", { class: vnode.state.textSide }, m.trust(content))
202+
m("div.prose", { class: vnode.state.textSize }, m.trust(content))
201203
),
202204
]
203205
)

ui/packages/settings/AboutView.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
const m = require("mithril")
22

33
const blurb = `
4-
# About Patchfox
5-
64
This is an alpha version of Patchfox.
75
86
At the moment it can only load the default
@@ -13,7 +11,10 @@ backends will be reinstated soon.
1311
const AboutView = {
1412
oninit: vnode => {},
1513
view: vnode => {
16-
return m(".prose", m.trust(ssb.markdown(blurb)))
14+
return [
15+
m("h1.uppercase.font-medium.text-xl.mb-4", "About Patchfox"),
16+
m(".prose", m.trust(ssb.markdown(blurb)))
17+
]
1718
},
1819
}
1920

0 commit comments

Comments
 (0)