Skip to content

Commit 7f43f86

Browse files
committed
feat: Add cursor color to themes #42
1 parent 4bffcd1 commit 7f43f86

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cupcake/config/dark.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ accent = "#2aaaff"
66
background = "#1f1f1f"
77
foreground = "#cccccc"
88
border = "#2a2a2a"
9-
9+
cursor = "#aeafad"
1010

1111
[editor]
1212
selection = "#264f78"

cupcake/config/light.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ accent = "#2aaaff"
66
background = "white"
77
foreground = "#424242"
88
border = "#dfdfdf"
9-
9+
cursor = "#000000"
1010

1111
[editor]
1212
selection = "#add6ff"

cupcake/texteditor/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self, master, path=None, minimalist=False, language=None, *args, **
3333
self.config_tags()
3434
self.create_proxy()
3535
self.config_bindings()
36-
self.configure(wrap=tk.NONE, relief=tk.FLAT, bg=self.base.theme.background, fg=self.base.theme.foreground)
36+
self.configure(wrap=tk.NONE, relief=tk.FLAT, bg=self.base.theme.background, fg=self.base.theme.foreground, insertbackground=self.base.theme.cursor)
3737

3838
self.update_words()
3939

0 commit comments

Comments
 (0)