GithubHelp home page GithubHelp logo

Comments (4)

basnijholt avatar basnijholt commented on June 12, 2024

I am setting the color using the average color that I create like this:

def average_color(fname):
color = Image.open(fname).resize((1, 1)).getpixel((0, 0))
hex_color = "#{:02x}{:02x}{:02x}".format(*color)
rgb_color = ImageColor.getrgb(hex_color)
return "rgba({}, {}, {}, 0.4)".format(*rgb_color)

If you have a better suggestion (or would like to pick colors), let me know! 😄

from lovelace-ios-themes.

okets avatar okets commented on June 12, 2024

Hello @basnijholt ,
Thank you for the quick response, I love your themes and am thankful for all the hard work put into them.

In my opinion, average colors don't complement the above-header color.
the above header color should complement the main color used in the background images (especially the colors in the top of the background image).
This is my suggestion for the 7 backgrounds in use:
homekit-bg-blue-red.jpg: rgb(30, 2, 61)
homekit-bg-dark-blue.jpg: rgb(48, 69, 124)
homekit-bg-dark-green.jpg: rgb(48, 89, 71)
homekit-bg-light-blue.jpg: rgb(1, 195, 220)
homekit-bg-light-green.jpg: rgb(114, 188, 139)
homekit-bg-orange.jpg: rgb(255, 229, 116)
homekit-bg-red.jpg: rgb(234, 88, 63)

I already changed them manually in my setup, it looks more streamlined than the previous colors.

from lovelace-ios-themes.

basnijholt avatar basnijholt commented on June 12, 2024

Thanks a lot! I have added your suggestions in #44 and released v2.11.0.

I just added 40% transparency.

Let me know what you think!

from lovelace-ios-themes.

okets avatar okets commented on June 12, 2024

Hi @basnijholt,
I am sorry for the late response. I have been on a long work trip and didn't have a chance to check this.
It looks better with the changes, but as it turns out, the 0.4 changes the color dramatically and therefore creates a distinction between the status bar and the rest of the application.
My point was to create a seamless header that blends with the app.
If you intended for the status bar to be distinct from the rest of the app, leave it as it is, otherwise, just remove the 0.4 opacity and it will blend in.
I forked the theme and changed it manually (it looks awesome in my opinion).
You can see the difference below:
Opacity 1:
3
Opacity 0.4
4

from lovelace-ios-themes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.