It looks like if you give a list of two colors to the drawer (backend/base.py:Drawer), it will create a linear gradient from one color to the other (see the 'set_source_rgb' method for base.Drawer). Note that you don't have to do this; you can just pass in a single color if you want.
James Wright On Tue, Oct 11, 2022 at 9:57 AM Matt <[email protected]> wrote: > I am new to WMs and I had a question regarding to the config.py file where > they specifiy the color theme. In most example configs I see, they create a > list, with 'x' amount of nested lists repeating the same colors in the > nested lists. e.g. > > def init_colors(): > return [["#2F343F", "#2F343F"], # color 0 > ["#2F343F", "#2F343F"], # color 1 > ["#c0c5ce", "#c0c5ce"], # color 2 > ["#fba922", "#fba922"], # color 3 > ["#3384d0", "#3384d0"], # color 4 > ["#f3f4f5", "#f3f4f5"], # color 5 > ["#cd1f3f", "#cd1f3f"], # color 6 > ["#62FF00", "#62FF00"], # color 7 > ["#6790eb", "#6790eb"], # color 8 > ["#a9a9a9", "#a9a9a9"]] # color 9 > > Why are these colors duplicated? > Thank You, > M > > -- > You received this message because you are subscribed to the Google Groups > "qtile-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/qtile-dev/172247af-0f3f-4f7b-878e-74149f01bb21n%40googlegroups.com > <https://groups.google.com/d/msgid/qtile-dev/172247af-0f3f-4f7b-878e-74149f01bb21n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "qtile-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/qtile-dev/CAHErDQgDUT_Km8aty%3DgSf3Y3yEs3nXjmmB_xCcypGjfEqKWWdA%40mail.gmail.com.
