Commit bbf1b4e6aa

bbf1b4e6aa67fe38cb06ac6c54960756f5c75497

parent: 8e486a6ffe

Unsigned

nyosic <Sebsztieeeofficial@gmail.com> · 2024-12-23 18:35 UTC

Improved ROFI UI

Layout: unified · split

rofi/selectanime.rasi +42 −40
@@ -1,79 +1,81 @@
11configuration {
2 font: "Sans 12";
3 line-margin: 10;
4 display-drun: "";
2 font: "Sans 12"; /* the font and size for the UI */
3 line-margin: 10; /* space between lines of text */
4 display-drun: ""; /* display-drun behavior */
55}
66
77* {
8 background: #000000; /* Black background for everything */
9 background-alt: #000000; /* Ensures no alternation */
8 background: rgba(20, 20, 20, 0.8); /* Dark, semi-transparent background */
9 background-alt: #000000; /* Alternative background color (solid black) */
1010 foreground: #CCCCCC;
11 selected: #3584E4;
12 active: #2E7D32;
13 urgent: #C62828;
11 selected: rgba(85, 255, 150, 0.75); /* Highlighted item color (greenish) */
12 active: #2E7D32; /* Color for active items (green) */
13 urgent: #C62828; /* Color for urgent items (red) */
1414}
1515
1616window {
1717 fullscreen: false;
18 background-color: rgba(0, 0, 0, 1); /* Solid black background */
18 background-color: @background; /* Window background color */
19 border-radius: 50px;
1920}
2021
2122mainbox {
22 padding: 50px 100px;
23 background-color: rgba(0, 0, 0, 1); /* Ensures black background fills entire main area */
23 padding: 50px 50px; /* padding around the content */
24 background-color: transparent; /* Transparent background */
2425 children: [inputbar, listview];
25 spacing: 20px;
26 spacing: 20px; /* space between child elements */
2627}
2728
2829inputbar {
29 background-color: #333333; /* Dark gray background for input bar */
30 padding: 8px;
31 border-radius: 8px;
30 background-color: #333333; /* Dark gray background for the input bar */
31 padding: 8px; /* padding inside the input bar */
32 border-radius: 12px; /* Rounded corners for the input bar */
3233 children: [prompt, entry];
3334}
3435
3536prompt {
36 enabled: true;
37 padding: 8px;
38 background-color: @selected;
39 text-color: #000000;
40 border-radius: 4px;
37 enabled: true; /* prompt inside the input bar */
38 padding: 8px; /* Padding inside the prompt */
39 background-color: @selected; /* Background color for the prompt (highlighted) */
40 text-color: #000000; /* Black text color for the prompt */
41 border-radius: 8px; /* Rounded corners for the prompt */
4142}
4243
4344entry {
44 padding: 8px;
45 background-color: #444444; /* Slightly lighter gray for visibility */
46 text-color: #FFFFFF; /* White text to make typing visible */
47 placeholder: "Search...";
48 placeholder-color: rgba(255, 255, 255, 0.5);
49 border-radius: 6px;
45 margin: 0px 0px 0px 5px; /* margin to the left of the entry field */
46 padding: 8px; /* padding inside the entry field */
47 background-color: #444444; /* Slightly lighter gray for the entry field */
48 text-color: #FFFFFF; /* White text inside the entry field */
49 placeholder: "Search..."; /* Placeholder text displayed when the entry is empty */
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 */
5052}
5153
5254listview {
53 layout: vertical;
54 spacing: 8px;
55 lines: 10;
56 background-color: @background; /* Consistent black background for list items */
55 layout: vertical; /* item list layout*/
56 spacing: 8px; /* Space between items in the list */
57 lines: 9; /* Limits the number of lines to display in the list */
58 background-color: transparent; /* Transparent background for the list */
5759}
5860
5961element {
60 padding: 12px;
61 border-radius: 4px;
62 background-color: @background; /* Uniform color for each list item */
63 text-color: @foreground;
62 padding: 12px; /* Padding inside each element of the list */
63 border-radius: 12px; /* Rounded corners for each element */
64 background-color: #444444; /* Uniform dark gray background for list items */
65 text-color: @foreground; /* Text color for the elements (light gray) */
6466}
6567
6668element normal.normal {
67 background-color: @background; /* Ensures no alternating color */
69 background-color: #333333; /* Default background color for normal list items */
6870}
6971
7072element selected.normal {
71 background-color: @selected;
72 text-color: #FFFFFF;
73 background-color: @selected; /* Background color for selected items */
74 text-color: #FFFFFF; /* White text for selected items */
7375}
7476
7577element-text {
76 background-color: transparent;
77 text-color: inherit;
78 vertical-align: 0.5;
78 background-color: transparent; /* Transparent background for element text */
79 text-color: inherit; /* Inherits text color from parent element */
80 vertical-align: 0.5; /* Vertically aligns the text */
7981}
rofi/selectanimepreview.rasi +72 −70
@@ -1,118 +1,120 @@
11// Colours
22* {
3 background-color: transparent;
4 background: #1D2330;
5 background-transparent: #1D2330A0;
6 text-color: #BBBBBB;
7 text-color-selected: #FFFFFF;
8 primary: #BB77BB;
9 important: #BF616A;
3 background-color: transparent; /* Transparent background for the global UI */
4 background: #000000; /* Solid black background */
5 background-transparent: #1D2330A0; /* Semi-transparent background */
6 text-color: #BBBBBB; /* Default text color (light gray) */
7 text-color-selected: #FFFFFF; /* Text color when selected (white) */
8 primary: rgba(85, 255, 150, 0.75); /* Greenish primary color */
9 important: rgba(85, 255, 150, 0.75); /* Color used for important items */
1010}
1111
1212configuration {
13 font: "Roboto 17";
14 show-icons: true;
13 font: "Roboto 14"; /* Sets the global font to Roboto, size 14 */
14 show-icons: true; /* Option to display icons in the UI */
1515}
1616
1717window {
18 fullscreen: true;
19 height: 100%;
20 width: 100%;
21 transparency: "real";
22 background-color: @background-transparent;
23 border: 0px;
24 border-color: @primary;
18 fullscreen: true; /* The window will open in fullscreen */
19 height: 100%; /* Full window height */
20 width: 100%; /* Full window width */
21 transparency: "real"; /* Real transparency effect */
22 background-color: @background-transparent; /* Transparent background */
23 border: 0px; /* No border around the window */
24 border-color: @primary; /* Border color set to the primary color */
2525}
2626
2727mainbox {
28 children: [prompt, inputbar-box, listview];
29 padding: 0px;
28 children: [prompt, inputbar-box, listview]; /* Main box contains prompt, input bar, and list view */
29 padding: 0px; /* No padding around the main box */
3030}
3131
3232prompt {
33 width: 100%;
34 margin: 10px 0px 0px 30px;
35 text-color: @important;
36 font: "Roboto Bold 27";
33 width: 100%; /* Prompt takes full width */
34 margin: 10px 0px 0px 30px; /* Margin around the prompt */
35 text-color: @important; /* Text color for prompt (important color) */
36 font: "Roboto Bold 27"; /* Bold Roboto font, size 27 */
3737}
3838
3939listview {
40 layout: vertical;
41 padding: 60px;
42 dynamic: true;
43 columns: 7;
44 spacing: 20px;
45 horizontal-align: center; /* Center the list items */
40 layout: vertical; /* Vertical layout for list items */
41 padding: 10px; /* Padding inside the list view */
42 spacing: 20px; /* Space between items in the list */
43 columns: 8; /* Maximum 8 items per row */
44 dynamic: true; /* Allows the list to dynamically adjust */
45 orientation: horizontal; /* Horizontal orientation for list items */
4646}
4747
4848inputbar-box {
49 children: [dummy, inputbar, dummy];
50 orientation: horizontal;
51 expand: false;
49 children: [dummy, inputbar, dummy]; /* Input bar is centered with dummy placeholders */
50 orientation: horizontal; /* Horizontal layout for input bar */
51 expand: false; /* Does not expand to fill the space */
5252}
5353
5454inputbar {
55 children: [textbox-prompt, entry];
56 margin: 0px;
57 background-color: @primary;
58 border: 4px;
59 border-color: @primary;
60 border-radius: 8px;
55 children: [textbox-prompt, entry]; /* Contains a prompt and an entry field */
56 margin: 0px; /* No margin around the input bar */
57 background-color: @primary; /* Background color set to the primary color */
58 border: 4px; /* Border thickness around the input bar */
59 border-color: @primary; /* Border color matches the primary color */
60 border-radius: 8px; /* Rounded corners for the input bar */
6161}
6262
6363textbox-prompt {
64 text-color: @background;
65 horizontal-align: 0.5;
66 vertical-align: 0.5;
67 expand: false;
64 text-color: @background; /* Text color inside prompt matches the background color */
65 horizontal-align: 0.5; /* Horizontally centered */
66 vertical-align: 0.5; /* Vertically centered */
67 expand: false; /* Does not expand to fill available space */
6868}
6969
7070entry {
71 expand: false;
72 padding: 8px;
73 margin: -6px;
74 horizontal-align: 0;
75 width: 300;
76 background-color: @background;
77 border: 6px;
78 border-color: @primary;
79 border-radius: 8px;
80 cursor: text;
71 expand: false; /* Entry field does not expand */
72 padding: 8px; /* Padding inside the entry field */
73 margin: -6px; /* Negative margin to position entry properly */
74 horizontal-align: 0; /* Left-aligned text inside the entry field */
75 width: 300; /* Fixed width for the entry field */
76 background-color: @background; /* Entry background color matches the global background */
77 border: 6px; /* Border thickness around the entry field */
78 border-color: @primary; /* Border color matches the primary color */
79 border-radius: 8px; /* Rounded corners for the entry field */
80 cursor: text; /* Cursor changes to text input cursor inside the entry field */
8181}
8282
8383element {
84 children: [dummy, element-box, dummy];
85 padding: 5px;
86 orientation: vertical;
87 border: 0px;
88 border-radius: 16px;
89 background-color: transparent; /* Default background */
84 children: [dummy, element-box, dummy]; /* Contains an element box with dummy placeholders */
85 padding: 5px; /* Padding around the element */
86 orientation: vertical; /* Vertical layout for element content */
87 border: 0px; /* No border around the element */
88 border-radius: 16px; /* Rounded corners for the element */
89 background-color: #1D2330; /* Default background color for the element */
90 width: 100px; /* Width of each element */
91 height: 50px; /* Height of each element */
9092}
9193
9294element selected {
93 background-color: @primary; /* Solid color for selected item */
95 background-color: @primary; /* Background color of the element when selected */
9496}
9597
9698element-box {
97 children: [element-icon, element-text];
98 orientation: vertical;
99 expand: false;
100 cursor: pointer;
99 children: [element-icon, element-text]; /* Element box contains an icon and text */
100 orientation: vertical; /* Vertical layout for icon and text */
101 expand: false; /* Does not expand to fill available space */
102 cursor: pointer; /* Cursor changes to a pointer when hovering over the element */
101103}
102104
103105element-icon {
104 padding: 10px;
105 cursor: inherit;
106 size: 33%;
107 margin: 10px;
106 padding: 10px; /* Padding inside the icon */
107 cursor: inherit; /* Inherits cursor style from the parent */
108 size: 33%; /* Icon size is set to 33% of the parent element */
109 margin: 10px; /* Margin around the icon */
108110}
109111
110112element-text {
111 horizontal-align: 0.5;
112 cursor: inherit;
113 text-color: @text-color;
113 horizontal-align: 0.5; /* Horizontally center-aligns the text */
114 cursor: inherit; /* Inherits cursor style from the parent */
115 text-color: @text-color; /* Text color for element text */
114116}
115117
116118element-text selected {
117 text-color: @text-color-selected;
119 text-color: @text-color-selected; /* Text color when the element is selected */
118120}