Commit aa52ea5772

aa52ea57720b3a52a5c49996feccbbeefc14a499

parent: 1cf5baa4a8

Unsigned

Wraient <wraient.911@gmail.com> · 2026-04-07 18:38 UTC

Update: Rofi Config

Layout: unified · split

internal/curd.go +2 −2
@@ -464,7 +464,7 @@ updateOptionLoop:
464464
465465 var progress string
466466 if userCurdConfig.RofiSelection {
467 progress, err = GetUserInputFromRofi(fmt.Sprintf("Current progress: %s\nEnter new progress (episode number)", currentProgress))
467 progress, err = GetUserInputFromRofi(fmt.Sprintf("Current progress: %s - Enter new progress (episode number)", currentProgress))
468468 if err != nil {
469469 Log(fmt.Sprintf("Failed to get progress input: %v", err))
470470 ExitCurd(fmt.Errorf("Failed to get progress input"))
@@ -1025,7 +1025,7 @@ func SetupCurd(userCurdConfig *CurdConfig, anime *Anime, user *User, databaseAni
10251025 for {
10261026 var manualQuery string
10271027 if userCurdConfig.RofiSelection {
1028 userInput, err := GetUserInputFromRofi(fmt.Sprintf("No results found for '%s'.\nPress Enter to search with AniList name, or enter a custom name to search on AllAnime.", userQuery))
1028 userInput, err := GetUserInputFromRofi(fmt.Sprintf("No results found for '%s'. Press Enter to search with AniList name, or enter a custom name to search on AllAnime.", userQuery))
10291029 if err != nil {
10301030 Log("Error getting user input: " + err.Error())
10311031 ExitCurd(fmt.Errorf("Error getting user input: " + err.Error()))
internal/localTracking.go +1 −1
@@ -283,7 +283,7 @@ func WatchUntracked(userCurdConfig *CurdConfig) {
283283 for {
284284 var manualQuery string
285285 if userCurdConfig.RofiSelection {
286 userInput, err := GetUserInputFromRofi(fmt.Sprintf("No results found for '%s'.\nPress Enter to search with the original name, or enter a custom name to search on AllAnime.", query))
286 userInput, err := GetUserInputFromRofi(fmt.Sprintf("No results found for '%s'. Press Enter to search with the original name, or enter a custom name to search on AllAnime.", query))
287287 if err != nil {
288288 Log("Error getting user input: " + err.Error())
289289 ExitCurd(fmt.Errorf("Error getting user input: " + err.Error()))
rofi/userinput.rasi +34 −29
@@ -1,55 +1,60 @@
1configuration {
2 font: "Sans 12";
3}
4
51* {
6 background-color: rgba(0, 0, 0, 0.7);
7 text-color: #FFFFFF;
2 background: #000000;
3 background-alt: #1a1a1a;
4 foreground: #CCCCCC;
5 selected: #3584E4;
86}
97
108window {
11 fullscreen: true;
12 transparency: "real";
9 fullscreen: false;
1310 background-color: transparent;
11 border-radius: 30px;
12 width: 800px;
13 height: 400px;
1414}
1515
1616mainbox {
17 children: [ message, listview, inputbar ];
18 padding: 40% 30%;
19 background-color: transparent;
17 children: [ message, inputbar ];
18 padding: 40px;
19 spacing: 30px;
20 background-color: #000000;
2021}
2122
2223message {
2324 border: 0;
24 padding: 10px;
25 border-radius:20px;
26 margin: 0 0 20px 0;
27 font: "Sans Bold 24"; /* Increased font size and made it bold */
25 padding: 0;
26 margin: 0;
27 font: "Sans Bold 22";
28 background-color: transparent;
29 text-color: #FFFFFF;
30}
31
32textbox {
33 background-color: #1a1a1a;
34 text-color: #FFFFFF;
35 padding: 25px;
36 border-radius: 15px;
37 font: "Sans Bold 22";
2838}
2939
3040inputbar {
3141 children: [ prompt, entry ];
32 background-color: rgba(255, 255, 255, 0.1);
33 padding: 8px;
34 border-radius: 4px;
42 background-color: #333333;
43 padding: 12px 16px;
44 border-radius: 10px;
45 text-color: #FFFFFF;
3546}
3647
3748prompt {
3849 padding: 8px;
50 background-color: @selected;
51 text-color: #000000;
52 border-radius: 6px;
53 margin: 0 8px 0 0;
3954}
4055
4156entry {
4257 padding: 8px;
4358 background-color: transparent;
44}
45
46listview {
47 lines: 0;
48}
49
50/* Style for the message text specifically */
51textbox {
52 horizontal-align: 0.5; /* Center the text */
53 font: "Sans Bold 24"; /* Match message font */
54 background-color: transparent;
59 text-color: #FFFFFF;
5560}