GithubHelp home page GithubHelp logo

Make titlebar dark about fluxcalc HOT 41 CLOSED

futura-py avatar futura-py commented on June 8, 2024 1
Make titlebar dark

from fluxcalc.

Comments (41)

HuyHung1408 avatar HuyHung1408 commented on June 8, 2024 1

Thank you a lot! I've seen your beautiful project and I'm finding a way to contact you. But now it's unnecessary. Will try after holiday end.

from fluxcalc.

not-nef avatar not-nef commented on June 8, 2024 1

Ok, my calculator was transparent, what should I do next? (Sorry if this is a stupid question). This is the first time I do something much complex like this one.

I forgot to tell you, you have to import ctypes at the beginning of your code!

from fluxcalc.

HuyHung1408 avatar HuyHung1408 commented on June 8, 2024

I'm not sure how to apply blur to my program after installed BlurWindow, just started to learn about Python 4 days ago.

from fluxcalc.

not-nef avatar not-nef commented on June 8, 2024

Its easy, just add the following lines to your code:

bg_color = ttk.Style().lookup(".", "background")
app.wm_attributes("-transparent", bg_color)
app.update()
HWND = ctypes.windll.user32.GetForegroundWindow()
GlobalBlur(HWND)

from fluxcalc.

not-nef avatar not-nef commented on June 8, 2024

Keep in mind that you have to replace app with the name of your tkinter window.

from fluxcalc.

im-coder-lg avatar im-coder-lg commented on June 8, 2024

Hi, I just want to know if you created this project by learning through YouTube. Coincidentally, I also made a program that mimics the entire code, except the theming. Just wanna know, and it's great seeing @not-nef too.

from fluxcalc.

im-coder-lg avatar im-coder-lg commented on June 8, 2024

You can use the code, anyway I put my edition in the public domain, but I just want to know, since the code is like an exact copy, except your abridged features.

from fluxcalc.

im-coder-lg avatar im-coder-lg commented on June 8, 2024

Wait, you said here that you saw our beautiful project, are you talking about TimerX? That's the only one I know, just a doubt. If you do like it, feel free to contribute too! We are looking for more features to add, especially since we hit the stable mark.

from fluxcalc.

im-coder-lg avatar im-coder-lg commented on June 8, 2024

Also, @not-nef this works only on Windows, since there are a bunch of errors when you try getting it onto POSIX-compliant operating systems like macOS and Linux.

from fluxcalc.

HuyHung1408 avatar HuyHung1408 commented on June 8, 2024

Hi, I just want to know if you created this project by learning through YouTube. Coincidentally, I also made a program that mimics the entire code, except the theming. Just wanna know, and it's great seeing @not-nef too.

yeah, I did lol, my teacher just taught me some basic things of python, else, I just search the internet

from fluxcalc.

im-coder-lg avatar im-coder-lg commented on June 8, 2024

Oh, then it's fine. You can carry on. I still have to update my code base lol.

from fluxcalc.

HuyHung1408 avatar HuyHung1408 commented on June 8, 2024

I will do if I learn more things in the future, my knowledge currently is still very basic!

from fluxcalc.

HuyHung1408 avatar HuyHung1408 commented on June 8, 2024

Its easy, just add the following lines to your code:

bg_color = ttk.Style().lookup(".", "background")
app.wm_attributes("-transparent", bg_color)
app.update()
HWND = ctypes.windll.user32.GetForegroundWindow()
GlobalBlur(HWND)

Thanks a lot!

from fluxcalc.

im-coder-lg avatar im-coder-lg commented on June 8, 2024

Also, that code works only on Windows. You need to import BLurWindow too. You can take an example of the implementation from TimerX.

from fluxcalc.

HuyHung1408 avatar HuyHung1408 commented on June 8, 2024

Ok, my calculator was transparent, what should I do next? (Sorry if this is a stupid question). This is the first time I do something much complex like this one.

from fluxcalc.

HuyHung1408 avatar HuyHung1408 commented on June 8, 2024

I've added it after seeing it missing, still transparent. Thanks for your help. Guess I will try after holiday week. My parent told me to shut down the computer. See you later.

from fluxcalc.

not-nef avatar not-nef commented on June 8, 2024

Bye

from fluxcalc.

not-nef avatar not-nef commented on June 8, 2024

did you import the BlurWindow module correctly? You have to do from BlurWindow.blurwindow import *

from fluxcalc.

im-coder-lg avatar im-coder-lg commented on June 8, 2024

I told @HuyHung1408 to implement it from TimerX. We did it a little bit better, hence I asked him to refer to our project.

from fluxcalc.

HuyHung1408 avatar HuyHung1408 commented on June 8, 2024

I told @HuyHung1408 to implement it from TimerX. We did it a little bit better, hence I asked him to refer to our project.

Ok, trying now XD

from fluxcalc.

HuyHung1408 avatar HuyHung1408 commented on June 8, 2024

did you import the BlurWindow module correctly? You have to do from BlurWindow.blurwindow import *

Yes, here is what happening
image
image

from fluxcalc.

HuyHung1408 avatar HuyHung1408 commented on June 8, 2024

btw, thanks a lot for both of you

from fluxcalc.

im-coder-lg avatar im-coder-lg commented on June 8, 2024

I think that is how it is supposed to be... Did you import ctypes?

from fluxcalc.

im-coder-lg avatar im-coder-lg commented on June 8, 2024

Try changing -transparent to -alpha and try. I don't think it was supposed to go like that.

from fluxcalc.

HuyHung1408 avatar HuyHung1408 commented on June 8, 2024

I think that is how it is supposed to be... Did you import ctypes?

yes, after the from BlurWindow.blurwindow import *

from fluxcalc.

HuyHung1408 avatar HuyHung1408 commented on June 8, 2024

Try changing -transparent to -alpha and try. I don't think it was supposed to go like that.

image
weird ahhh

from fluxcalc.

im-coder-lg avatar im-coder-lg commented on June 8, 2024

I meant not supposed to be, sorry for that. @not-nef can you tell how you added blur to TimerX? The TimerX system theme issue with transparency is here, although it's only transparency. How'd you do that?

from fluxcalc.

im-coder-lg avatar im-coder-lg commented on June 8, 2024

Oh... I experimented with that. For got about it. Let it be. I will try making a PR to fix this tomorrow, can't boot my PC atm.

from fluxcalc.

HuyHung1408 avatar HuyHung1408 commented on June 8, 2024

Oh... I experimented with that. For got about it. Let it be. I will try making a PR to fix this tomorrow, can't boot my PC atm.

Ok, thank you a lot

from fluxcalc.

im-coder-lg avatar im-coder-lg commented on June 8, 2024

Also, I can't promise when I will make the PR, it's heavy IRL here. So, it is a big if, but if I get the chance, I'll utilise it.

from fluxcalc.

HuyHung1408 avatar HuyHung1408 commented on June 8, 2024

Also, I can't promise when I will make the PR, it's heavy IRL here. So, it is a big if, but if I get the chance, I'll utilise it.

That's ok, don't worry. We can try another method if it didn't work

from fluxcalc.

HuyHung1408 avatar HuyHung1408 commented on June 8, 2024

Thanks a lot, guys, I got it working after reviewing TimerX python files, light mode is cursed haha
image
image

from fluxcalc.

HuyHung1408 avatar HuyHung1408 commented on June 8, 2024

I think I'll use the button instead of the command bar button for the dark/mode switcher since making the command bar dark will be more complicated. I guess I will focus on the dark/light mode switcher then will add blur and dark title bar later

from fluxcalc.

HuyHung1408 avatar HuyHung1408 commented on June 8, 2024

Thanks a lot!

from fluxcalc.

HuyHung1408 avatar HuyHung1408 commented on June 8, 2024

I pushed my latest changes to Github, there or some issues like Acrylic works with dark mode on start, click 'M' to change dark to light mode then it changes to Acrylic with a light mode, change it again and Acrylic didn't work with dark mode. Not sure why.

from fluxcalc.

HuyHung1408 avatar HuyHung1408 commented on June 8, 2024

Current progress! How to set the titlebar to white again after apply light theme?
image
image

from fluxcalc.

sumeshir26 avatar sumeshir26 commented on June 8, 2024

Call GlobalBlur again, and this time set Dark to False

from fluxcalc.

HuyHung1408 avatar HuyHung1408 commented on June 8, 2024

Call GlobalBlur again, and this time set Dark to False

image
Like this, right?

from fluxcalc.

im-coder-lg avatar im-coder-lg commented on June 8, 2024

Lookin' great! Hiya @sumeshir26!

from fluxcalc.

sumeshir26 avatar sumeshir26 commented on June 8, 2024

Yep, like that

from fluxcalc.

HuyHung1408 avatar HuyHung1408 commented on June 8, 2024

Thank all of you!

from fluxcalc.

Related Issues (17)

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.