Skip to content

Commit

Permalink
Soft-refactor current theme.
Browse files Browse the repository at this point in the history
  • Loading branch information
lu0 committed May 15, 2022
1 parent 0613b9b commit cc6fe3d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 15 deletions.
4 changes: 2 additions & 2 deletions powermenu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ if (( $OPTIND == 1 )); then
fi

selected="$(echo -e "$options" |
rofi -show-icons -theme powermenu_theme.rasi \
-fake-background ${SS_PATH}.png -fake-transparency \
rofi -theme powermenu_theme.rasi \
-fake-background ${SS_PATH}.png \
-font "WeblySleek UI Light, $FONTSIZE" \
-p "See you later, ${LOGNAME^}!" -dmenu -selected-row ${PRESELECTION})"

Expand Down
37 changes: 24 additions & 13 deletions powermenu_theme.rasi
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,30 @@
*
*/

* {
title-margins: 4.62% 9.5%; /* Modify 2nd % if needed */
content-position: 27.7% 20.8%;
space-between-options: 2.5%;
option-inset-padding: 4.1% 2.6% 2.5% -4.1%;
// Rofi configuration, do not change!
configuration {
show-icons: true;
fake-transparency: true;
}

window-bg-color: rgba(15, 15, 15, 0.7);
title-text-color: rgba(255, 255, 255, 1);
selected-bg-color: rgba(100, 100, 100, 0.5);
unselected-bg-color: rgba(100, 100, 100, 0.1);
selected-text-color: rgba(255, 255, 255, 1);
unselected-text-color: rgba(255, 255, 255, 0.5);
// Colors, modify them to your needs!
* {
window-bg-color: rgba(15, 15, 15, 0.7);
title-text-color: rgba(255, 255, 255, 1);
selected-bg-color: rgba(100, 100, 100, 0.5);
unselected-bg-color: rgba(100, 100, 100, 0.1);
selected-text-color: rgba(255, 255, 255, 1);
unselected-text-color: rgba(255, 255, 255, 0.5);
}

// Positions and margins, most likely not going to change
* {
title-margins: 4.62% 9.5%;
content-position: 27.7% 20.8%;
space-between-options: 2.5%;
option-inset-padding: 4.1% 2.6% 2.5% -4.1%;
option-radius: 50%;
number-of-options: 5;
}

#window {
Expand Down Expand Up @@ -52,13 +63,13 @@ prompt {
layout: horizontal;
background-color: transparent;
spacing: @space-between-options;
lines: 5;
lines: @number-of-options;
}

#element {
text-color: @unselected-text-color;
padding: @option-inset-padding;
border-radius: 50%;
border-radius: @option-radius;
background-color: @unselected-bg-color;
}

Expand Down

0 comments on commit cc6fe3d

Please sign in to comment.