Commit bbf1b4e6aa
Unsigned
Layout: unified · split
rofi/selectanime.rasi +42 −40
| @@ -1,79 +1,81 @@ | |||
| 1 | configuration { | 1 | configuration { |
| 2 | font: "Sans 12"; | 2 | font: "Sans 12"; /* the font and size for the UI */ |
| 3 | line-margin: 10; | 3 | line-margin: 10; /* space between lines of text */ |
| 4 | display-drun: ""; | 4 | display-drun: ""; /* display-drun behavior */ |
| 5 | } | 5 | } |
| 6 | 6 | ||
| 7 | * { | 7 | * { |
| 8 | background: #000000; /* Black background for everything */ | 8 | background: rgba(20, 20, 20, 0.8); /* Dark, semi-transparent background */ |
| 9 | background-alt: #000000; /* Ensures no alternation */ | 9 | background-alt: #000000; /* Alternative background color (solid black) */ |
| 10 | foreground: #CCCCCC; | 10 | foreground: #CCCCCC; |
| 11 | selected: #3584E4; | 11 | selected: rgba(85, 255, 150, 0.75); /* Highlighted item color (greenish) */ |
| 12 | active: #2E7D32; | 12 | active: #2E7D32; /* Color for active items (green) */ |
| 13 | urgent: #C62828; | 13 | urgent: #C62828; /* Color for urgent items (red) */ |
| 14 | } | 14 | } |
| 15 | 15 | ||
| 16 | window { | 16 | window { |
| 17 | fullscreen: false; | 17 | fullscreen: false; |
| 18 | background-color: rgba(0, 0, 0, 1); /* Solid black background */ | 18 | background-color: @background; /* Window background color */ |
| 19 | border-radius: 50px; | ||
| 19 | } | 20 | } |
| 20 | 21 | ||
| 21 | mainbox { | 22 | mainbox { |
| 22 | padding: 50px 100px; | 23 | padding: 50px 50px; /* padding around the content */ |
| 23 | background-color: rgba(0, 0, 0, 1); /* Ensures black background fills entire main area */ | 24 | background-color: transparent; /* Transparent background */ |
| 24 | children: [inputbar, listview]; | 25 | children: [inputbar, listview]; |
| 25 | spacing: 20px; | 26 | spacing: 20px; /* space between child elements */ |
| 26 | } | 27 | } |
| 27 | 28 | ||
| 28 | inputbar { | 29 | inputbar { |
| 29 | background-color: #333333; /* Dark gray background for input bar */ | 30 | background-color: #333333; /* Dark gray background for the input bar */ |
| 30 | padding: 8px; | 31 | padding: 8px; /* padding inside the input bar */ |
| 31 | border-radius: 8px; | 32 | border-radius: 12px; /* Rounded corners for the input bar */ |
| 32 | children: [prompt, entry]; | 33 | children: [prompt, entry]; |
| 33 | } | 34 | } |
| 34 | 35 | ||
| 35 | prompt { | 36 | prompt { |
| 36 | enabled: true; | 37 | enabled: true; /* prompt inside the input bar */ |
| 37 | padding: 8px; | 38 | padding: 8px; /* Padding inside the prompt */ |
| 38 | background-color: @selected; | 39 | background-color: @selected; /* Background color for the prompt (highlighted) */ |
| 39 | text-color: #000000; | 40 | text-color: #000000; /* Black text color for the prompt */ |
| 40 | border-radius: 4px; | 41 | border-radius: 8px; /* Rounded corners for the prompt */ |
| 41 | } | 42 | } |
| 42 | 43 | ||
| 43 | entry { | 44 | entry { |
| 44 | padding: 8px; | 45 | margin: 0px 0px 0px 5px; /* margin to the left of the entry field */ |
| 45 | background-color: #444444; /* Slightly lighter gray for visibility */ | 46 | padding: 8px; /* padding inside the entry field */ |
| 46 | text-color: #FFFFFF; /* White text to make typing visible */ | 47 | background-color: #444444; /* Slightly lighter gray for the entry field */ |
| 47 | placeholder: "Search..."; | 48 | text-color: #FFFFFF; /* White text inside the entry field */ |
| 48 | placeholder-color: rgba(255, 255, 255, 0.5); | 49 | placeholder: "Search..."; /* Placeholder text displayed when the entry is empty */ |
| 49 | border-radius: 6px; | 50 | placeholder-color: rgba(255, 255, 255, 0.5); /* Faded white color for the placeholder */ |
| 51 | border-radius: 8px; /* Rounded corners for the entry field */ | ||
| 50 | } | 52 | } |
| 51 | 53 | ||
| 52 | listview { | 54 | listview { |
| 53 | layout: vertical; | 55 | layout: vertical; /* item list layout*/ |
| 54 | spacing: 8px; | 56 | spacing: 8px; /* Space between items in the list */ |
| 55 | lines: 10; | 57 | lines: 9; /* Limits the number of lines to display in the list */ |
| 56 | background-color: @background; /* Consistent black background for list items */ | 58 | background-color: transparent; /* Transparent background for the list */ |
| 57 | } | 59 | } |
| 58 | 60 | ||
| 59 | element { | 61 | element { |
| 60 | padding: 12px; | 62 | padding: 12px; /* Padding inside each element of the list */ |
| 61 | border-radius: 4px; | 63 | border-radius: 12px; /* Rounded corners for each element */ |
| 62 | background-color: @background; /* Uniform color for each list item */ | 64 | background-color: #444444; /* Uniform dark gray background for list items */ |
| 63 | text-color: @foreground; | 65 | text-color: @foreground; /* Text color for the elements (light gray) */ |
| 64 | } | 66 | } |
| 65 | 67 | ||
| 66 | element normal.normal { | 68 | element normal.normal { |
| 67 | background-color: @background; /* Ensures no alternating color */ | 69 | background-color: #333333; /* Default background color for normal list items */ |
| 68 | } | 70 | } |
| 69 | 71 | ||
| 70 | element selected.normal { | 72 | element selected.normal { |
| 71 | background-color: @selected; | 73 | background-color: @selected; /* Background color for selected items */ |
| 72 | text-color: #FFFFFF; | 74 | text-color: #FFFFFF; /* White text for selected items */ |
| 73 | } | 75 | } |
| 74 | 76 | ||
| 75 | element-text { | 77 | element-text { |
| 76 | background-color: transparent; | 78 | background-color: transparent; /* Transparent background for element text */ |
| 77 | text-color: inherit; | 79 | text-color: inherit; /* Inherits text color from parent element */ |
| 78 | vertical-align: 0.5; | 80 | vertical-align: 0.5; /* Vertically aligns the text */ |
| 79 | } | 81 | } |
rofi/selectanimepreview.rasi +72 −70
| @@ -1,118 +1,120 @@ | |||
| 1 | // Colours | 1 | // Colours |
| 2 | * { | 2 | * { |
| 3 | background-color: transparent; | 3 | background-color: transparent; /* Transparent background for the global UI */ |
| 4 | background: #1D2330; | 4 | background: #000000; /* Solid black background */ |
| 5 | background-transparent: #1D2330A0; | 5 | background-transparent: #1D2330A0; /* Semi-transparent background */ |
| 6 | text-color: #BBBBBB; | 6 | text-color: #BBBBBB; /* Default text color (light gray) */ |
| 7 | text-color-selected: #FFFFFF; | 7 | text-color-selected: #FFFFFF; /* Text color when selected (white) */ |
| 8 | primary: #BB77BB; | 8 | primary: rgba(85, 255, 150, 0.75); /* Greenish primary color */ |
| 9 | important: #BF616A; | 9 | important: rgba(85, 255, 150, 0.75); /* Color used for important items */ |
| 10 | } | 10 | } |
| 11 | 11 | ||
| 12 | configuration { | 12 | configuration { |
| 13 | font: "Roboto 17"; | 13 | font: "Roboto 14"; /* Sets the global font to Roboto, size 14 */ |
| 14 | show-icons: true; | 14 | show-icons: true; /* Option to display icons in the UI */ |
| 15 | } | 15 | } |
| 16 | 16 | ||
| 17 | window { | 17 | window { |
| 18 | fullscreen: true; | 18 | fullscreen: true; /* The window will open in fullscreen */ |
| 19 | height: 100%; | 19 | height: 100%; /* Full window height */ |
| 20 | width: 100%; | 20 | width: 100%; /* Full window width */ |
| 21 | transparency: "real"; | 21 | transparency: "real"; /* Real transparency effect */ |
| 22 | background-color: @background-transparent; | 22 | background-color: @background-transparent; /* Transparent background */ |
| 23 | border: 0px; | 23 | border: 0px; /* No border around the window */ |
| 24 | border-color: @primary; | 24 | border-color: @primary; /* Border color set to the primary color */ |
| 25 | } | 25 | } |
| 26 | 26 | ||
| 27 | mainbox { | 27 | mainbox { |
| 28 | children: [prompt, inputbar-box, listview]; | 28 | children: [prompt, inputbar-box, listview]; /* Main box contains prompt, input bar, and list view */ |
| 29 | padding: 0px; | 29 | padding: 0px; /* No padding around the main box */ |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | prompt { | 32 | prompt { |
| 33 | width: 100%; | 33 | width: 100%; /* Prompt takes full width */ |
| 34 | margin: 10px 0px 0px 30px; | 34 | margin: 10px 0px 0px 30px; /* Margin around the prompt */ |
| 35 | text-color: @important; | 35 | text-color: @important; /* Text color for prompt (important color) */ |
| 36 | font: "Roboto Bold 27"; | 36 | font: "Roboto Bold 27"; /* Bold Roboto font, size 27 */ |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | listview { | 39 | listview { |
| 40 | layout: vertical; | 40 | layout: vertical; /* Vertical layout for list items */ |
| 41 | padding: 60px; | 41 | padding: 10px; /* Padding inside the list view */ |
| 42 | dynamic: true; | 42 | spacing: 20px; /* Space between items in the list */ |
| 43 | columns: 7; | 43 | columns: 8; /* Maximum 8 items per row */ |
| 44 | spacing: 20px; | 44 | dynamic: true; /* Allows the list to dynamically adjust */ |
| 45 | horizontal-align: center; /* Center the list items */ | 45 | orientation: horizontal; /* Horizontal orientation for list items */ |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | inputbar-box { | 48 | inputbar-box { |
| 49 | children: [dummy, inputbar, dummy]; | 49 | children: [dummy, inputbar, dummy]; /* Input bar is centered with dummy placeholders */ |
| 50 | orientation: horizontal; | 50 | orientation: horizontal; /* Horizontal layout for input bar */ |
| 51 | expand: false; | 51 | expand: false; /* Does not expand to fill the space */ |
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | inputbar { | 54 | inputbar { |
| 55 | children: [textbox-prompt, entry]; | 55 | children: [textbox-prompt, entry]; /* Contains a prompt and an entry field */ |
| 56 | margin: 0px; | 56 | margin: 0px; /* No margin around the input bar */ |
| 57 | background-color: @primary; | 57 | background-color: @primary; /* Background color set to the primary color */ |
| 58 | border: 4px; | 58 | border: 4px; /* Border thickness around the input bar */ |
| 59 | border-color: @primary; | 59 | border-color: @primary; /* Border color matches the primary color */ |
| 60 | border-radius: 8px; | 60 | border-radius: 8px; /* Rounded corners for the input bar */ |
| 61 | } | 61 | } |
| 62 | 62 | ||
| 63 | textbox-prompt { | 63 | textbox-prompt { |
| 64 | text-color: @background; | 64 | text-color: @background; /* Text color inside prompt matches the background color */ |
| 65 | horizontal-align: 0.5; | 65 | horizontal-align: 0.5; /* Horizontally centered */ |
| 66 | vertical-align: 0.5; | 66 | vertical-align: 0.5; /* Vertically centered */ |
| 67 | expand: false; | 67 | expand: false; /* Does not expand to fill available space */ |
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | entry { | 70 | entry { |
| 71 | expand: false; | 71 | expand: false; /* Entry field does not expand */ |
| 72 | padding: 8px; | 72 | padding: 8px; /* Padding inside the entry field */ |
| 73 | margin: -6px; | 73 | margin: -6px; /* Negative margin to position entry properly */ |
| 74 | horizontal-align: 0; | 74 | horizontal-align: 0; /* Left-aligned text inside the entry field */ |
| 75 | width: 300; | 75 | width: 300; /* Fixed width for the entry field */ |
| 76 | background-color: @background; | 76 | background-color: @background; /* Entry background color matches the global background */ |
| 77 | border: 6px; | 77 | border: 6px; /* Border thickness around the entry field */ |
| 78 | border-color: @primary; | 78 | border-color: @primary; /* Border color matches the primary color */ |
| 79 | border-radius: 8px; | 79 | border-radius: 8px; /* Rounded corners for the entry field */ |
| 80 | cursor: text; | 80 | cursor: text; /* Cursor changes to text input cursor inside the entry field */ |
| 81 | } | 81 | } |
| 82 | 82 | ||
| 83 | element { | 83 | element { |
| 84 | children: [dummy, element-box, dummy]; | 84 | children: [dummy, element-box, dummy]; /* Contains an element box with dummy placeholders */ |
| 85 | padding: 5px; | 85 | padding: 5px; /* Padding around the element */ |
| 86 | orientation: vertical; | 86 | orientation: vertical; /* Vertical layout for element content */ |
| 87 | border: 0px; | 87 | border: 0px; /* No border around the element */ |
| 88 | border-radius: 16px; | 88 | border-radius: 16px; /* Rounded corners for the element */ |
| 89 | background-color: transparent; /* Default background */ | 89 | background-color: #1D2330; /* Default background color for the element */ |
| 90 | width: 100px; /* Width of each element */ | ||
| 91 | height: 50px; /* Height of each element */ | ||
| 90 | } | 92 | } |
| 91 | 93 | ||
| 92 | element selected { | 94 | element selected { |
| 93 | background-color: @primary; /* Solid color for selected item */ | 95 | background-color: @primary; /* Background color of the element when selected */ |
| 94 | } | 96 | } |
| 95 | 97 | ||
| 96 | element-box { | 98 | element-box { |
| 97 | children: [element-icon, element-text]; | 99 | children: [element-icon, element-text]; /* Element box contains an icon and text */ |
| 98 | orientation: vertical; | 100 | orientation: vertical; /* Vertical layout for icon and text */ |
| 99 | expand: false; | 101 | expand: false; /* Does not expand to fill available space */ |
| 100 | cursor: pointer; | 102 | cursor: pointer; /* Cursor changes to a pointer when hovering over the element */ |
| 101 | } | 103 | } |
| 102 | 104 | ||
| 103 | element-icon { | 105 | element-icon { |
| 104 | padding: 10px; | 106 | padding: 10px; /* Padding inside the icon */ |
| 105 | cursor: inherit; | 107 | cursor: inherit; /* Inherits cursor style from the parent */ |
| 106 | size: 33%; | 108 | size: 33%; /* Icon size is set to 33% of the parent element */ |
| 107 | margin: 10px; | 109 | margin: 10px; /* Margin around the icon */ |
| 108 | } | 110 | } |
| 109 | 111 | ||
| 110 | element-text { | 112 | element-text { |
| 111 | horizontal-align: 0.5; | 113 | horizontal-align: 0.5; /* Horizontally center-aligns the text */ |
| 112 | cursor: inherit; | 114 | cursor: inherit; /* Inherits cursor style from the parent */ |
| 113 | text-color: @text-color; | 115 | text-color: @text-color; /* Text color for element text */ |
| 114 | } | 116 | } |
| 115 | 117 | ||
| 116 | element-text selected { | 118 | element-text selected { |
| 117 | text-color: @text-color-selected; | 119 | text-color: @text-color-selected; /* Text color when the element is selected */ |
| 118 | } | 120 | } |