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 | 465 | var progress string |
| 466 | 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 | 468 | if err != nil { |
| 469 | 469 | Log(fmt.Sprintf("Failed to get progress input: %v", err)) |
| 470 | 470 | ExitCurd(fmt.Errorf("Failed to get progress input")) |
| @@ -1025,7 +1025,7 @@ func SetupCurd(userCurdConfig *CurdConfig, anime *Anime, user *User, databaseAni |
| 1025 | 1025 | for { |
| 1026 | 1026 | var manualQuery string |
| 1027 | 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 | 1029 | if err != nil { |
| 1030 | 1030 | Log("Error getting user input: " + err.Error()) |
| 1031 | 1031 | ExitCurd(fmt.Errorf("Error getting user input: " + err.Error())) |
internal/localTracking.go
+1 −1
| @@ -283,7 +283,7 @@ func WatchUntracked(userCurdConfig *CurdConfig) { |
| 283 | 283 | for { |
| 284 | 284 | var manualQuery string |
| 285 | 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 | 287 | if err != nil { |
| 288 | 288 | Log("Error getting user input: " + err.Error()) |
| 289 | 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); |
| 7 | | text-color: #FFFFFF; |
| 2 | background: #000000; |
| 3 | background-alt: #1a1a1a; |
| 4 | foreground: #CCCCCC; |
| 5 | selected: #3584E4; |
| 8 | 6 | } |
| 9 | 7 | |
| 10 | 8 | window { |
| 11 | | fullscreen: true; |
| 12 | | transparency: "real"; |
| 9 | fullscreen: false; |
| 13 | 10 | background-color: transparent; |
| 11 | border-radius: 30px; |
| 12 | width: 800px; |
| 13 | height: 400px; |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | mainbox { |
| 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; |
| 20 | 21 | } |
| 21 | 22 | |
| 22 | 23 | message { |
| 23 | 24 | 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 | |
| 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 | 40 | inputbar { |
| 31 | 41 | 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; |
| 35 | 46 | } |
| 36 | 47 | |
| 37 | 48 | prompt { |
| 38 | 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 | 56 | entry { |
| 42 | 57 | padding: 8px; |
| 43 | 58 | background-color: transparent; |
| 44 | | } |
| 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; |
| 59 | text-color: #FFFFFF; |
| 55 | 60 | } |