Futura-Py / TimerX

A fluent Timer App, made completely in Python
https://timerx-app.netlify.app
MIT License
37 stars 5 forks source link

fix: Linux Support #87

Closed rdbende closed 2 years ago

netlify[bot] commented 2 years ago

✔️ Deploy Preview for timerx-app canceled.

🔨 Explore the source changes: a9c6a8caf50d9ceb9bb402549034db755b7a083a

🔍 Inspect the deploy log: https://app.netlify.com/sites/timerx-app/deploys/620c0dc033d861000732875c

im-coder-lg commented 2 years ago

Ooh, thanks a bunch @rdbende! I just need a little bit more data. A screenshot and what OS you are running, that'd be all :)

im-coder-lg commented 2 years ago

Hmm checks failed... IDK what happened. But don't format the code right now, I have a tool for that. Triggered tomorrow 5:30 AM UTC.

not-nef commented 2 years ago

What a legend

sumeshir26 commented 2 years ago

Thank you so much! Just a few things:

rdbende commented 2 years ago

image Works like this on KDE Neon (Debian-based).

rdbende commented 2 years ago

Also,do you know how to make the manager windows and settings window titlebar dark since they dont seem to have the same HWND as the main window

Here's a nice Gist on how you can force dark titlebar (on Windows): https://gist.github.com/Olikonsti/879edbf69b801d8519bf25e804cec0aa Here is how I implemented it in tukaan. You can see that you need to minimize and then unminimize the window to take effect.

im-coder-lg commented 2 years ago

I'll have to test it. I was busy yesterday and am so tired right now.

sumeshir26 commented 2 years ago

@rdbende It dosent work: D:\Coding\TimerX>python main.py

Traceback (most recent call last):
  File "D:\Coding\TimerX\main.py", line 639, in <module>
    makeWindowsBlur(app)
  File "D:\Coding\TimerX\main.py", line 598, in makeWindowsBlur
  File "%LOCAPPDATA%\Programs\Python\Python310\lib\site-packages\BlurWindow\blurWindow.py", line 162, in GlobalBlur
    blur(HWND,hexColor,Acrylic,Dark)
  File "%LOCALAPPDATA\Programs\Python\Python310\lib\site-packages\BlurWindow\blurWindow.py", line 122, in blur
    gradientColor = HEXtoRGBAint(hexColor)
  File "%LOCALAPPDATA%\Programs\Python\Python310\lib\site-packages\BlurWindow\blurWindow.py", line 106, in HEXtoRGBAint
    alpha = HEX[7:]
TypeError: '_tkinter.Tcl_Obj' object is not subscriptable
im-coder-lg commented 2 years ago

@sumesir26 updaed your comment, you exposed your private paths, so don't forget to use Windows vars like LOCALAPPDATA, APPDATA, USERPROFILE, etc.

im-coder-lg commented 2 years ago

Alright, I gotta tell this - I am distro-hopping to Raspbian ARM 64-bit. Ubuntu didn't let me connect via XRDP, so I am testing this on Debian as well as Windows 7.

im-coder-lg commented 2 years ago

Works on both operating systems, but I don't like the drop-down - the old method was a little bit better. Also, the blur problem that happened when TimerX was in its alpha stages is back; it is blur overexposure.

im-coder-lg commented 2 years ago

I'll rename the title to something semantic, and don't worry about code styling. I have a cronjob, is it fine if we trigger it once every week? Just rescheduling the cron time.

im-coder-lg commented 2 years ago

Does anyone like the new title?

sumeshir26 commented 2 years ago

@not-nef Merge this

not-nef commented 2 years ago

Alright