Add a setting for cursor width (#2219)

This commit is contained in:
Veronica Berglyd Olsen
2025-02-06 17:24:57 +01:00
parent aa84d998a0
commit 598667826f
5 changed files with 24 additions and 3 deletions
+2 -1
View File
@@ -1,5 +1,5 @@
[Meta]
timestamp = 2025-01-29 11:56:34
timestamp = 2025-02-06 11:05:16
[Main]
font =
@@ -36,6 +36,7 @@ textfont =
width = 700
margin = 40
tabwidth = 40
cursorwidth = 1
focuswidth = 800
hidefocusfooter = False
justify = False
@@ -242,11 +242,13 @@ def testDlgPreferences_Settings(qtbot, monkeypatch, nwGUI, fncPath, tstPaths):
# Text Editing
prefs.spellLanguage.setCurrentIndex(prefs.spellLanguage.findData("de"))
prefs.autoSelect.setChecked(False)
prefs.cursorWidth.setValue(5)
prefs.showTabsNSpaces.setChecked(True)
prefs.showLineEndings.setChecked(True)
assert CONFIG.spellLanguage != "de"
assert CONFIG.autoSelect is True
assert CONFIG.cursorWidth == 1
assert CONFIG.showTabsNSpaces is False
assert CONFIG.showLineEndings is False
@@ -379,6 +381,7 @@ def testDlgPreferences_Settings(qtbot, monkeypatch, nwGUI, fncPath, tstPaths):
# Text Editing
assert CONFIG.spellLanguage == "de"
assert CONFIG.autoSelect is False
assert CONFIG.cursorWidth == 5
assert CONFIG.showTabsNSpaces is True
assert CONFIG.showLineEndings is True