mako & bmenu: use transparent background

This commit is contained in:
lelgenio 2021-02-21 19:07:44 -03:00
parent 3830da7085
commit 5640769579
3 changed files with 25 additions and 19 deletions

View File

@ -1,7 +1,7 @@
# {{@@ header() @@}}
font={{@@ font.interface @@}} 12
text-color={{@@ color.txt @@}}
background-color={{@@ color.bg @@}}
background-color={{@@ color.bg @@}}{{@@ opacity | clamp_to_hex @@}}
border-color={{@@ accent_color @@}}
border-size=5
progress-color={{@@ accent_color @@}}

View File

@ -21,35 +21,35 @@ fi
# s selected
# sc scrollbar
fn="{{@@ font.mono @@}} {{@@ font.size.small @@}}"
fn="{{@@ font.mono @@}} {{@@ font.size.small @@}}"
tb="{{@@ color.bg @@}}"
tf="{{@@ accent_color @@}}"
tb="{{@@ color.bg @@}}{{@@ opacity | clamp_to_hex @@}}"
tf="{{@@ accent_color @@}}"
fb="{{@@ color.bg @@}}"
ff="{{@@ color.txt @@}}"
fb="{{@@ color.bg @@}}{{@@ opacity | clamp_to_hex @@}}"
ff="{{@@ color.txt @@}}"
nb="{{@@ color.bg @@}}"
nf="{{@@ color.txt @@}}"
nb="{{@@ color.bg @@}}{{@@ opacity | clamp_to_hex @@}}"
nf="{{@@ color.txt @@}}"
hb="{{@@ color.bg_light @@}}"
hf="{{@@ accent_color @@}}"
hb="{{@@ color.bg_light @@}}"
hf="{{@@ accent_color @@}}"
#{%@@ if False @@%}#
# Hacks to allow runnning even if not templated
fn="Fira Code 12"
fn="Fira Code 12"
tf="#D9534F"
tb="#202020"
tf="#D9534F"
tb="#202020"
ff="#ffffff"
fb="#202020"
ff="#ffffff"
fb="#202020"
nf="#ffffff"
nb="#202020"
nf="#ffffff"
nb="#202020"
hf="#D9534F"
hb="#404040"
hf="#D9534F"
hb="#404040"
#{%@@ endif @@%}#
bemenu \

View File

@ -80,3 +80,9 @@ def darker(arg1, amount=0.75):
def lighter(arg1, amount=1.25):
return color_mult(arg1, amount)
def as_hex(in_number):
return hex(int(in_number))[2:]
def clamp_to_hex(in_number):
return as_hex(in_number * 255)