Commit 678bcd8861

678bcd8861dfbb5c1cdd4f63fba9e3024b3700b1

parent: b471d8d764

Unsigned

Wraient <wraient.911@gmail.com> · 2024-12-24 12:15 UTC

Updated rofi ui

Layout: unified · split

rofi/selectanime.rasi +40 −41
@@ -1,81 +1,80 @@
1configuration { 1configuration {
2 font: "Sans 12"; /* the font and size for the UI */ 2 font: "Sans 12";
3 line-margin: 10; /* space between lines of text */ 3 line-margin: 10;
4 display-drun: ""; /* display-drun behavior */ 4 display-drun: "";
5} 5}
6 6
7* { 7* {
8 background: rgba(20, 20, 20, 0.8); /* Dark, semi-transparent background */ 8 background: #000000; /* Black background for everything */
9 background-alt: #000000; /* Alternative background color (solid black) */ 9 background-alt: #000000; /* Ensures no alternation */
10 foreground: #CCCCCC; 10 foreground: #CCCCCC;
11 selected: rgba(85, 255, 150, 0.75); /* Highlighted item color (greenish) */ 11 selected: #3584E4;
12 active: #2E7D32; /* Color for active items (green) */ 12 active: #2E7D32;
13 urgent: #C62828; /* Color for urgent items (red) */ 13 urgent: #C62828;
14} 14}
15 15
16window { 16window {
17 fullscreen: false; 17 fullscreen: false;
18 background-color: @background; /* Window background color */ 18 background-color: rgba(0, 0, 0, 0.8); /* Solid black transparent background */
19 border-radius: 50px; 19 border-radius: 50px;
20} 20}
21 21
22mainbox { 22mainbox {
23 padding: 50px 50px; /* padding around the content */ 23 padding: 50px 50px;
24 background-color: transparent; /* Transparent background */ 24 background-color: transparent; /* Ensures black background fills entire main area */
25 children: [inputbar, listview]; 25 children: [inputbar, listview];
26 spacing: 20px; /* space between child elements */ 26 spacing: 20px;
27} 27}
28 28
29inputbar { 29inputbar {
30 background-color: #333333; /* Dark gray background for the input bar */ 30 background-color: #333333; /* Dark gray background for input bar */
31 padding: 8px; /* padding inside the input bar */ 31 padding: 8px;
32 border-radius: 12px; /* Rounded corners for the input bar */ 32 border-radius: 8px;
33 children: [prompt, entry]; 33 children: [prompt, entry];
34} 34}
35 35
36prompt { 36prompt {
37 enabled: true; /* prompt inside the input bar */ 37 enabled: true;
38 padding: 8px; /* Padding inside the prompt */ 38 padding: 8px;
39 background-color: @selected; /* Background color for the prompt (highlighted) */ 39 background-color: @selected;
40 text-color: #000000; /* Black text color for the prompt */ 40 text-color: #000000;
41 border-radius: 8px; /* Rounded corners for the prompt */ 41 border-radius: 4px;
42} 42}
43 43
44entry { 44entry {
45 margin: 0px 0px 0px 5px; /* margin to the left of the entry field */ 45 padding: 8px;
46 padding: 8px; /* padding inside the entry field */ 46 background-color: transparent; /* Slightly lighter gray for visibility */
47 background-color: #444444; /* Slightly lighter gray for the entry field */ 47 text-color: #FFFFFF; /* White text to make typing visible */
48 text-color: #FFFFFF; /* White text inside the entry field */ 48 placeholder: "Search...";
49 placeholder: "Search..."; /* Placeholder text displayed when the entry is empty */ 49 placeholder-color: rgba(255, 255, 255, 0.5);
50 placeholder-color: rgba(255, 255, 255, 0.5); /* Faded white color for the placeholder */ 50 border-radius: 6px;
51 border-radius: 8px; /* Rounded corners for the entry field */
52} 51}
53 52
54listview { 53listview {
55 layout: vertical; /* item list layout*/ 54 layout: vertical;
56 spacing: 8px; /* Space between items in the list */ 55 spacing: 8px;
57 lines: 9; /* Limits the number of lines to display in the list */ 56 lines: 9;
58 background-color: transparent; /* Transparent background for the list */ 57 background-color: transparent; /* Consistent black background for list items */
59} 58}
60 59
61element { 60element {
62 padding: 12px; /* Padding inside each element of the list */ 61 padding: 12px;
63 border-radius: 12px; /* Rounded corners for each element */ 62 border-radius: 4px;
64 background-color: #444444; /* Uniform dark gray background for list items */ 63 background-color: transparent; /* Uniform color for each list item */
65 text-color: @foreground; /* Text color for the elements (light gray) */ 64 text-color: @foreground;
66} 65}
67 66
68element normal.normal { 67element normal.normal {
69 background-color: #333333; /* Default background color for normal list items */ 68 background-color: transparent; /* Ensures no alternating color */
70} 69}
71 70
72element selected.normal { 71element selected.normal {
73 background-color: @selected; /* Background color for selected items */ 72 background-color: @selected;
74 text-color: #FFFFFF; /* White text for selected items */ 73 text-color: #FFFFFF;
75} 74}
76 75
77element-text { 76element-text {
78 background-color: transparent; /* Transparent background for element text */ 77 background-color: transparent;
79 text-color: inherit; /* Inherits text color from parent element */ 78 text-color: inherit;
80 vertical-align: 0.5; /* Vertically aligns the text */ 79 vertical-align: 0.5;
81} 80}
rofi/selectanimepreview.rasi +3 −3
@@ -5,8 +5,8 @@
5 background-transparent: #1D2330A0; /* Semi-transparent background */ 5 background-transparent: #1D2330A0; /* Semi-transparent background */
6 text-color: #BBBBBB; /* Default text color (light gray) */ 6 text-color: #BBBBBB; /* Default text color (light gray) */
7 text-color-selected: #FFFFFF; /* Text color when selected (white) */ 7 text-color-selected: #FFFFFF; /* Text color when selected (white) */
8 primary: rgba(85, 255, 150, 0.75); /* Greenish primary color */ 8 primary: rgba(53, 132, 228, 0.75); /* Blusish primary color */
9 important: rgba(85, 255, 150, 0.75); /* Color used for important items */ 9 important: rgba(53, 132, 228, 0.75); /* Bluish primary color */
10} 10}
11 11
12configuration { 12configuration {
@@ -86,7 +86,7 @@ element {
86 orientation: vertical; /* Vertical layout for element content */ 86 orientation: vertical; /* Vertical layout for element content */
87 border: 0px; /* No border around the element */ 87 border: 0px; /* No border around the element */
88 border-radius: 16px; /* Rounded corners for the element */ 88 border-radius: 16px; /* Rounded corners for the element */
89 background-color: #1D2330; /* Default background color for the element */ 89 background-color: transparent; /* Transparent background */
90 width: 100px; /* Width of each element */ 90 width: 100px; /* Width of each element */
91 height: 50px; /* Height of each element */ 91 height: 50px; /* Height of each element */
92} 92}
rofi/userinput.rasi +6 −2
@@ -10,17 +10,19 @@ configuration {
10window { 10window {
11 fullscreen: true; 11 fullscreen: true;
12 transparency: "real"; 12 transparency: "real";
13 background-color: @background-color; 13 background-color: transparent;
14} 14}
15 15
16mainbox { 16mainbox {
17 children: [ message, listview, inputbar ]; 17 children: [ message, listview, inputbar ];
18 padding: 40% 30%; 18 padding: 40% 30%;
19 background-color: transparent;
19} 20}
20 21
21message { 22message {
22 border: 0; 23 border: 0;
23 padding: 10px; 24 padding: 10px;
25 border-radius:20px;
24 margin: 0 0 20px 0; 26 margin: 0 0 20px 0;
25 font: "Sans Bold 24"; /* Increased font size and made it bold */ 27 font: "Sans Bold 24"; /* Increased font size and made it bold */
26} 28}
@@ -38,6 +40,7 @@ prompt {
38 40
39entry { 41entry {
40 padding: 8px; 42 padding: 8px;
43 background-color: transparent;
41} 44}
42 45
43listview { 46listview {
@@ -48,4 +51,5 @@ listview {
48textbox { 51textbox {
49 horizontal-align: 0.5; /* Center the text */ 52 horizontal-align: 0.5; /* Center the text */
50 font: "Sans Bold 24"; /* Match message font */ 53 font: "Sans Bold 24"; /* Match message font */
51}\ No newline at end of file 54 background-color: transparent;
55}