rofi/selectanimepreview.rasi

120 lines · 6558 bytes

  1// Colours
  2* {
  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(53, 132, 228, 0.75);  /* Blusish primary color */
  9    important:                      rgba(53, 132, 228, 0.75);  /* Bluish primary color */
 10}
 11
 12configuration {
 13    font:                           "Roboto 14";  /* Sets the global font to Roboto, size 14 */
 14    show-icons:                     true;  /* Option to display icons in the UI */
 15}
 16
 17window {
 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 */
 25}
 26
 27mainbox {
 28    children:                       [prompt, inputbar-box, listview];  /* Main box contains prompt, input bar, and list view */
 29    padding:                        0px;  /* No padding around the main box */
 30}
 31
 32prompt {
 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 */
 37}
 38
 39listview {
 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 */
 46}
 47
 48inputbar-box {
 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 */
 52}
 53
 54inputbar {
 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 */
 61}
 62
 63textbox-prompt {
 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 */
 68}
 69
 70entry {
 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 */
 81}
 82
 83element {
 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:               transparent;  /* Transparent background */
 90    width:                          100px;  /* Width of each element */
 91    height:                         50px;  /* Height of each element */
 92}
 93
 94element selected {
 95    background-color:               @primary;  /* Background color of the element when selected */
 96}
 97
 98element-box {
 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 */
103}
104
105element-icon {
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 */
110}
111
112element-text {
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 */
116}
117
118element-text selected {
119    text-color:                     @text-color-selected;  /* Text color when the element is selected */
120}