mirror of
https://github.com/FellippeHeitor/InForm.git
synced 2025-01-15 11:59:34 +00:00
Properly set the Editor's font in macOS/Linux. Also:
- Make "Keep attached" setting unavailable if not in Windows.
This commit is contained in:
parent
09a0fda4a1
commit
6232e3938b
2 changed files with 8 additions and 1 deletions
|
@ -502,6 +502,13 @@ SUB __UI_BeforeUpdateDisplay
|
|||
PUT #UiEditorFile, OffsetWindowLeft, b$
|
||||
PUT #UiEditorFile, OffsetWindowTop, b$
|
||||
END IF
|
||||
$ELSE
|
||||
IF PreviewAttached = True THEN
|
||||
PreviewAttached = False
|
||||
SaveSettings
|
||||
END IF
|
||||
Control(__UI_GetID("VIEWMENUPREVIEWDETACH")).Disabled = True
|
||||
Control(__UI_GetID("VIEWMENUPREVIEWDETACH")).Value = False
|
||||
$END IF
|
||||
|
||||
b$ = MKI$(AutoNameControls)
|
||||
|
|
|
@ -10,7 +10,7 @@ SUB __UI_LoadForm
|
|||
$IF WIN THEN
|
||||
Control(__UI_NewID).Font = SetFont("segoeui.ttf", 12, "")
|
||||
$ELSE
|
||||
Control(__UI_NewID).Font = SetFont("resources\NotoMono-Regular.ttf", 12, "")
|
||||
Control(__UI_NewID).Font = SetFont("InForm/resources/NotoMono-Regular.ttf", 12, "")
|
||||
$END IF
|
||||
|
||||
__UI_NewID = __UI_NewControl(__UI_Type_MenuBar, "FileMenu", 44, 18, 8, 0, 0)
|
||||
|
|
Loading…
Reference in a new issue