From cee7baa1831a8f236c46d8c438c2a4d9bda8a0e2 Mon Sep 17 00:00:00 2001 From: Mario Pietsch Date: Thu, 29 Jun 2017 17:55:49 +0200 Subject: [PATCH] Make editor font configurable, so user can easily change it to eg monospace font (#2867) --- core/language/en-GB/ThemeTweaks.multids | 1 + languages/de-DE/ThemeTweaks.multids | 1 + themes/tiddlywiki/snowwhite/base.tid | 4 ++++ themes/tiddlywiki/vanilla/ThemeTweaks.tid | 1 + themes/tiddlywiki/vanilla/base.tid | 1 + 5 files changed, 8 insertions(+) diff --git a/core/language/en-GB/ThemeTweaks.multids b/core/language/en-GB/ThemeTweaks.multids index 694d56b13..9c619dbff 100644 --- a/core/language/en-GB/ThemeTweaks.multids +++ b/core/language/en-GB/ThemeTweaks.multids @@ -12,6 +12,7 @@ Options/CodeWrapping: Wrap long lines in code blocks Settings: Settings Settings/FontFamily: Font family Settings/CodeFontFamily: Code font family +Settings/EditorFontFamily: Editor font family Settings/BackgroundImage: Page background image Settings/BackgroundImageAttachment: Page background image attachment Settings/BackgroundImageAttachment/Scroll: Scroll with tiddlers diff --git a/languages/de-DE/ThemeTweaks.multids b/languages/de-DE/ThemeTweaks.multids index 6f4adaf8f..1099cf7c6 100644 --- a/languages/de-DE/ThemeTweaks.multids +++ b/languages/de-DE/ThemeTweaks.multids @@ -12,6 +12,7 @@ Options/CodeWrapping: Lange Zeilen in "Code-Blöcken" umbrechen Settings: Einstellungen Settings/FontFamily: Schriftfamilie Settings/CodeFontFamily: "Code" Schriftfamilie +Settings/EditorFontFamily: Editor Schriftfamilie Settings/BackgroundImage: Hintergrundbild für die Seite Settings/BackgroundImageAttachment: Hintergrundbild Anhang Settings/BackgroundImageAttachment/Scroll: Mit Inhalt "scrollen" diff --git a/themes/tiddlywiki/snowwhite/base.tid b/themes/tiddlywiki/snowwhite/base.tid index 78aae3b1f..4bdff613e 100644 --- a/themes/tiddlywiki/snowwhite/base.tid +++ b/themes/tiddlywiki/snowwhite/base.tid @@ -46,6 +46,10 @@ tags: [[$:/tags/Stylesheet]] outline: none; } +textarea.tc-edit-texteditor { + font-family: {{$:/themes/tiddlywiki/vanilla/settings/editorfontfamily}}; +} + canvas.tc-edit-bitmapeditor { <> } diff --git a/themes/tiddlywiki/vanilla/ThemeTweaks.tid b/themes/tiddlywiki/vanilla/ThemeTweaks.tid index 486270851..e5d987ca1 100644 --- a/themes/tiddlywiki/vanilla/ThemeTweaks.tid +++ b/themes/tiddlywiki/vanilla/ThemeTweaks.tid @@ -53,6 +53,7 @@ caption: {{$:/language/ThemeTweaks/ThemeTweaks}} |<$link to="$:/themes/tiddlywiki/vanilla/settings/fontfamily"><> |<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/settings/fontfamily" default="" tag="input"/> | | |<$link to="$:/themes/tiddlywiki/vanilla/settings/codefontfamily"><> |<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/settings/codefontfamily" default="" tag="input"/> | | +|<$link to="$:/themes/tiddlywiki/vanilla/settings/editorfontfamily"><> |<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/settings/editorfontfamily" default="" tag="input"/> | | |<$link to="$:/themes/tiddlywiki/vanilla/settings/backgroundimage"><> |<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/settings/backgroundimage" default="" tag="input"/> |<> | |<$link to="$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment"><> |<> | | |<$link to="$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize"><> |<> | | diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index a5856d001..71da158d8 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -993,6 +993,7 @@ button.tc-untagged-label { background-color: <>; line-height: 1.3em; -webkit-appearance: none; + font-family: {{$:/themes/tiddlywiki/vanilla/settings/editorfontfamily}}; } .tc-tiddler-frame .tc-binary-warning {