Skip to content

Commit 565311c

Browse files
Added colourswatch and fill preset widgets
1 parent 77c21b3 commit 565311c

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

src/defaults/configuration.json5

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
"layout":[
2020
"os",
2121
"hostname",
22+
"fill",
23+
"fill",
24+
"fill",
25+
"fill",
26+
"fill",
27+
"colourswatch"
2228
],
2329

2430
////////////////////// ASCII ART CONFIGURATION //////////////////////
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class Widget: # Must be named Widget.
2+
def __init__(self):
3+
# It is advised that you process your most intensive logic here.
4+
self.Value = "<:#f38ba8:>⬤ <:#fab387:>⬤ <:#f9e2af:>⬤ <:#a6e3a1:>⬤ <:#89b4fa:>⬤ <:#b4befe:>⬤"
5+
6+
def Get(self):return self.Value # Must be named Get, but may return anything that can be converted to a string.

src/defaults/constants/fill.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class Widget: # Must be named Widget.
2+
def __init__(self):
3+
# It is advised that you process your most intensive logic here.
4+
self.Value = ""
5+
6+
def Get(self):return self.Value # Must be named Get, but may return anything that can be converted to a string.

src/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def OPTION_RegenerateConfiguration():
3535
exit(0)
3636
else:
3737
print("Are you sure you want to regenerate your configuration? This will reset everything to default!")
38-
print("Type 'yes' to confirm, or anything else to cancel.")
39-
Confirmation = input().strip().lower()
38+
print("Enter your choice (yes/NO): ")
39+
Confirmation = input("> ").strip().lower()
4040
if Confirmation.lower().strip() in "yes":
4141
ShellUtilityLibrary.rmtree(FancyfetchShared.ConfigurationDirectory, ignore_errors=True)
4242
FancyfetchSetup.EnsureConfiguration()

0 commit comments

Comments
 (0)