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: |
| 464 | |
464 | |
| 465 | var progress string |
465 | var progress string |
| 466 | if userCurdConfig.RofiSelection { |
466 | 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)) |
| 468 | if err != nil { |
468 | if err != nil { |
| 469 | Log(fmt.Sprintf("Failed to get progress input: %v", err)) |
469 | Log(fmt.Sprintf("Failed to get progress input: %v", err)) |
| 470 | ExitCurd(fmt.Errorf("Failed to get progress input")) |
470 | ExitCurd(fmt.Errorf("Failed to get progress input")) |
| @@ -1025,7 +1025,7 @@ func SetupCurd(userCurdConfig *CurdConfig, anime *Anime, user *User, databaseAni |
| 1025 | for { |
1025 | for { |
| 1026 | var manualQuery string |
1026 | var manualQuery string |
| 1027 | if userCurdConfig.RofiSelection { |
1027 | 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)) |
| 1029 | if err != nil { |
1029 | if err != nil { |
| 1030 | Log("Error getting user input: " + err.Error()) |
1030 | Log("Error getting user input: " + err.Error()) |
| 1031 | ExitCurd(fmt.Errorf("Error getting user input: " + err.Error())) |
1031 | ExitCurd(fmt.Errorf("Error getting user input: " + err.Error())) |
internal/localTracking.go
+1 −1
| @@ -283,7 +283,7 @@ func WatchUntracked(userCurdConfig *CurdConfig) { |
| 283 | for { |
283 | for { |
| 284 | var manualQuery string |
284 | var manualQuery string |
| 285 | if userCurdConfig.RofiSelection { |
285 | 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)) |
| 287 | if err != nil { |
287 | if err != nil { |
| 288 | Log("Error getting user input: " + err.Error()) |
288 | Log("Error getting user input: " + err.Error()) |
| 289 | ExitCurd(fmt.Errorf("Error getting user input: " + err.Error())) |
289 | ExitCurd(fmt.Errorf("Error getting user input: " + err.Error())) |
rofi/userinput.rasi
+34 −29
| @@ -1,55 +1,60 @@ |
| 1 | configuration { |
| |
| 2 | font: "Sans 12"; |
| |
| 3 | } |
| |
| 4 | |
| |
| 5 | * { |
1 | * { |
| 6 | background-color: rgba(0, 0, 0, 0.7); |
2 | background: #000000; |
| 7 | text-color: #FFFFFF; |
3 | background-alt: #1a1a1a; |
| |
4 | foreground: #CCCCCC; |
| |
5 | selected: #3584E4; |
| 8 | } |
6 | } |
| 9 | |
7 | |
| 10 | window { |
8 | window { |
| 11 | fullscreen: true; |
9 | fullscreen: false; |
| 12 | transparency: "real"; |
| |
| 13 | background-color: transparent; |
10 | background-color: transparent; |
| |
11 | border-radius: 30px; |
| |
12 | width: 800px; |
| |
13 | height: 400px; |
| 14 | } |
14 | } |
| 15 | |
15 | |
| 16 | mainbox { |
16 | mainbox { |
| 17 | children: [ message, listview, inputbar ]; |
17 | children: [ message, inputbar ]; |
| 18 | padding: 40% 30%; |
18 | padding: 40px; |
| 19 | background-color: transparent; |
19 | spacing: 30px; |
| |
20 | background-color: #000000; |
| 20 | } |
21 | } |
| 21 | |
22 | |
| 22 | message { |
23 | message { |
| 23 | border: 0; |
24 | border: 0; |
| 24 | padding: 10px; |
25 | padding: 0; |
| 25 | border-radius:20px; |
26 | margin: 0; |
| 26 | margin: 0 0 20px 0; |
27 | font: "Sans Bold 22"; |
| 27 | font: "Sans Bold 24"; /* Increased font size and made it bold */ |
28 | background-color: transparent; |
| |
29 | text-color: #FFFFFF; |
| |
30 | } |
| |
31 | |
| |
32 | textbox { |
| |
33 | background-color: #1a1a1a; |
| |
34 | text-color: #FFFFFF; |
| |
35 | padding: 25px; |
| |
36 | border-radius: 15px; |
| |
37 | font: "Sans Bold 22"; |
| 28 | } |
38 | } |
| 29 | |
39 | |
| 30 | inputbar { |
40 | inputbar { |
| 31 | children: [ prompt, entry ]; |
41 | children: [ prompt, entry ]; |
| 32 | background-color: rgba(255, 255, 255, 0.1); |
42 | background-color: #333333; |
| 33 | padding: 8px; |
43 | padding: 12px 16px; |
| 34 | border-radius: 4px; |
44 | border-radius: 10px; |
| |
45 | text-color: #FFFFFF; |
| 35 | } |
46 | } |
| 36 | |
47 | |
| 37 | prompt { |
48 | prompt { |
| 38 | padding: 8px; |
49 | padding: 8px; |
| |
50 | background-color: @selected; |
| |
51 | text-color: #000000; |
| |
52 | border-radius: 6px; |
| |
53 | margin: 0 8px 0 0; |
| 39 | } |
54 | } |
| 40 | |
55 | |
| 41 | entry { |
56 | entry { |
| 42 | padding: 8px; |
57 | padding: 8px; |
| 43 | background-color: transparent; |
58 | background-color: transparent; |
| 44 | } |
59 | text-color: #FFFFFF; |
| 45 | |
| |
| 46 | listview { |
| |
| 47 | lines: 0; |
| |
| 48 | } |
| |
| 49 | |
| |
| 50 | /* Style for the message text specifically */ |
| |
| 51 | textbox { |
| |
| 52 | horizontal-align: 0.5; /* Center the text */ |
| |
| 53 | font: "Sans Bold 24"; /* Match message font */ |
| |
| 54 | background-color: transparent; |
| |
| 55 | } |
60 | } |