Open blueyed opened 8 years ago
i will think on the first topic during the day
about the latter -- i am doing exactly the same thing in my local config: https://github.com/actionless/awesome_config/blob/devel/actionless/common_theme.lua#L16
mb it will make sense to add some helper to beautiful
for importing a theme, like:
local theme = beautiful.load_theme('theme_name')
for me it seems to be an error in the theme if some of the colors is the same as background, so i don't think what it's reasonable to handle such case
mb we can move choose_contrast_color
from gtk
theme somewhere to gears
? : https://github.com/awesomeWM/awesome/blob/4bd5b1940dbfb7d8275cc8a55b870b5fde55ebfc/themes/gtk/theme.lua#L249-L253
in this implementation priority of choices is defined by order, it could be changed to compare lightness of two colors and choose most contrast, but i personally would prefer to have both options
With the dark Solarized theme,
xrdb.color8
is the same color astheme.bg_normal
, which results in the tasklist entry of minimized windows to be invisible.I could imagine to fix this by using a pattern like this:
(although color0 and color8 are very similar, it would be better already).
Is there some functionality in awesome already to calculate how different two colors are already? Then maybe multiple alternatives could be checked, until the contrast is big enough?
Solarized theme
Apart from that, I've started to create a Solarized theme, based on the xresources one already.
The themes itself are not "importable" via
require
, are they?Is there a better way to deviate from another theme than the following?