1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 13:29:56 +00:00

Make editor font configurable, so user can easily change it to eg monospace font (#2867)

This commit is contained in:
Mario Pietsch 2017-06-29 17:55:49 +02:00 committed by Jeremy Ruston
parent 37cbaa08f1
commit cee7baa183
5 changed files with 8 additions and 0 deletions

View File

@ -12,6 +12,7 @@ Options/CodeWrapping: Wrap long lines in code blocks
Settings: Settings Settings: Settings
Settings/FontFamily: Font family Settings/FontFamily: Font family
Settings/CodeFontFamily: Code font family Settings/CodeFontFamily: Code font family
Settings/EditorFontFamily: Editor font family
Settings/BackgroundImage: Page background image Settings/BackgroundImage: Page background image
Settings/BackgroundImageAttachment: Page background image attachment Settings/BackgroundImageAttachment: Page background image attachment
Settings/BackgroundImageAttachment/Scroll: Scroll with tiddlers Settings/BackgroundImageAttachment/Scroll: Scroll with tiddlers

View File

@ -12,6 +12,7 @@ Options/CodeWrapping: Lange Zeilen in "Code-Blöcken" umbrechen
Settings: Einstellungen Settings: Einstellungen
Settings/FontFamily: Schriftfamilie Settings/FontFamily: Schriftfamilie
Settings/CodeFontFamily: "Code" Schriftfamilie Settings/CodeFontFamily: "Code" Schriftfamilie
Settings/EditorFontFamily: Editor Schriftfamilie
Settings/BackgroundImage: Hintergrundbild für die Seite Settings/BackgroundImage: Hintergrundbild für die Seite
Settings/BackgroundImageAttachment: Hintergrundbild Anhang Settings/BackgroundImageAttachment: Hintergrundbild Anhang
Settings/BackgroundImageAttachment/Scroll: Mit Inhalt "scrollen" Settings/BackgroundImageAttachment/Scroll: Mit Inhalt "scrollen"

View File

@ -46,6 +46,10 @@ tags: [[$:/tags/Stylesheet]]
outline: none; outline: none;
} }
textarea.tc-edit-texteditor {
font-family: {{$:/themes/tiddlywiki/vanilla/settings/editorfontfamily}};
}
canvas.tc-edit-bitmapeditor { canvas.tc-edit-bitmapeditor {
<<box-shadow "2px 2px 5px rgba(0, 0, 0, 0.5)">> <<box-shadow "2px 2px 5px rgba(0, 0, 0, 0.5)">>
} }

View File

@ -53,6 +53,7 @@ caption: {{$:/language/ThemeTweaks/ThemeTweaks}}
|<$link to="$:/themes/tiddlywiki/vanilla/settings/fontfamily"><<lingo Settings/FontFamily>></$link> |<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/settings/fontfamily" default="" tag="input"/> | | |<$link to="$:/themes/tiddlywiki/vanilla/settings/fontfamily"><<lingo Settings/FontFamily>></$link> |<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/settings/fontfamily" default="" tag="input"/> | |
|<$link to="$:/themes/tiddlywiki/vanilla/settings/codefontfamily"><<lingo Settings/CodeFontFamily>></$link> |<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/settings/codefontfamily" default="" tag="input"/> | | |<$link to="$:/themes/tiddlywiki/vanilla/settings/codefontfamily"><<lingo Settings/CodeFontFamily>></$link> |<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/settings/codefontfamily" default="" tag="input"/> | |
|<$link to="$:/themes/tiddlywiki/vanilla/settings/editorfontfamily"><<lingo Settings/EditorFontFamily>></$link> |<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/settings/editorfontfamily" default="" tag="input"/> | |
|<$link to="$:/themes/tiddlywiki/vanilla/settings/backgroundimage"><<lingo Settings/BackgroundImage>></$link> |<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/settings/backgroundimage" default="" tag="input"/> |<<backgroundimage-dropdown>> | |<$link to="$:/themes/tiddlywiki/vanilla/settings/backgroundimage"><<lingo Settings/BackgroundImage>></$link> |<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/settings/backgroundimage" default="" tag="input"/> |<<backgroundimage-dropdown>> |
|<$link to="$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment"><<lingo Settings/BackgroundImageAttachment>></$link> |<<backgroundimageattachment-dropdown>> | | |<$link to="$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment"><<lingo Settings/BackgroundImageAttachment>></$link> |<<backgroundimageattachment-dropdown>> | |
|<$link to="$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize"><<lingo Settings/BackgroundImageSize>></$link> |<<backgroundimagesize-dropdown>> | | |<$link to="$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize"><<lingo Settings/BackgroundImageSize>></$link> |<<backgroundimagesize-dropdown>> | |

View File

@ -993,6 +993,7 @@ button.tc-untagged-label {
background-color: <<colour tiddler-editor-background>>; background-color: <<colour tiddler-editor-background>>;
line-height: 1.3em; line-height: 1.3em;
-webkit-appearance: none; -webkit-appearance: none;
font-family: {{$:/themes/tiddlywiki/vanilla/settings/editorfontfamily}};
} }
.tc-tiddler-frame .tc-binary-warning { .tc-tiddler-frame .tc-binary-warning {