Khiro95 / Awqat-Salaat

A simple Windows widget to show the time of the next prayer alongside a countdown on the taskbar.
MIT License
47 stars 2 forks source link

can we get a version that can be in windows 11 taskbar #1

Closed byakuyaxgara closed 4 months ago

byakuyaxgara commented 7 months ago

I know u say it doesn't support windows 11 but was wondering if it is possible to make a widget for the widget tab...it can be enabled for taskbar from settings

Khiro95 commented 7 months ago

I'm planning to make a version for Windows 11. The issue we have here is that Windows 11 requires a completely different technique and I'm not familiar with it yet.

So yes, I will work on a version that is dedicated for Windows 11 and newer but I can't promise this to be soon.

sfksuperman commented 6 months ago

I'm planning to make a version for Windows 11. The issue we have here is that Windows 11 requires a completely different technique and I'm not familiar with it yet.

So yes, I will work on a version that is dedicated for Windows 11 and newer but I can't promise this to be soon.

I was just about to open an issue regarding this. But as far as I remember, during initial setup, we used to see the Toolbar options in Windows 11 but now I cannot see.

Could you please do it soon for WIn11?

Khiro95 commented 6 months ago

Could you please do it soon for WIn11?

I will try in this Ramadhan insha'Allah.

Khiro95 commented 5 months ago

Alhamdulillah,

As I promised, I've been working this Ramadhan on a solution to make Awqat Salaat widget works on Windows 11. Unfortunately, there is no easy way to make the current implementation works 'smoothly' on Windows 11, so I'm now creating a standalone WinUI app which run on Windows 11 (and on Windows 10 too).

I want to share the current progress for those who are interested, so this is a screenshot of what have been done so far. Still a lot to catch but getting there :) image

byakuyaxgara commented 5 months ago

جزاك الله خيرا Looking forward to it

sfksuperman commented 5 months ago

Alhamdulillah,

As I promised, I've been working this Ramadhan on a solution to make Awqat Salaat widget works on Windows 11. Unfortunately, there is no easy way to make the current implementation works 'smoothly' on Windows 11, so I'm now creating a standalone WinUI app which run on Windows 11 (and on Windows 10 too).

I want to share the current progress for those who are interested, so this is a screenshot of what have been done so far. Still a lot to catch but getting there :) image

Can this be moved in SYSTEM TRAY and displayed beside the Volume & Wifi icons?

Khiro95 commented 5 months ago

Can this be moved in SYSTEM TRAY and displayed beside the Volume & Wifi icons?

As far as I know this is impossible. The system allows us to add icons only to the system tray, and I think I will add one for Awqat Salaat widget since there is no Toolbars menu in the taskbar to start/stop the widget.

In Windows 10 and earlier versions, the feature called Desk Band is managed by Explorer hence it allow taskbar toolbars to reside in a reserved space since it count them as a part of the taskbar. However, in Windows 11 we lost this feature and Microsoft didn't provide a viable alternative (Windows 11 widgets feature is sadly inappropriate in our case). So we are left with the last ressort... hacking the taskbar. This is simply done by manually injecting a window into the taskbar and move it to the desired position. Unfortunately, we get no reserved space which means that the injected window can overlap some elements on the taskbar when it become full. These limitations applies to the system tray so it cannot be used.

Khiro95 commented 4 months ago

Alhamdulillah,

More updates on the version of Windows 11, almost finished :)

(Note: the date and the time in the GIF are modified for testing purposes)

awqat_salaat_win11

Khiro95 commented 4 months ago

@byakuyaxgara @sfksuperman v3.0 has been just released with support for Windows 11! Thanks guys for pushing me to do it finally :) May Allah reward you.

sfksuperman commented 4 months ago

image

Which one to choose?

Khiro95 commented 4 months ago

image

Which one to choose?

Choose AwqatSalaat.WinUI_Release-x64/86.msi if you want to use the widget on Windows 11. Otherwise, use the other.

sfksuperman commented 4 months ago

How to get the country codes, please? And can we adjust the position of the widget across the taskbar (because it's overlapping with another widget which I have to show network speed)?

image

Khiro95 commented 4 months ago

How to get the country codes, please? And can we adjust the position of the widget across the taskbar (because it's overlapping with another widget which I have to show network speed)?

image

You can find the country code in Wikipedia here

If I'm right, you are using Traffic Monitor widget which also uses the same hack used for Awqat Salaat WinUI widget. In fact, I got some inspiration from that widget :) Unfortunately, the overlapping issue is the main disadvantage for using that hack because there is no reserved space for the widget(s). And making the widget aware of such other injected widgets isn't a trivial task (since they can be injected at many levels). But will give it a try.

Please consider opening a new issue for this case :)

sfksuperman commented 4 months ago

In Islamic Finder tab, the country code for Qatar is QA but there is no Zip Code at all. Putting 0000 or 00000 or 000000 is still not working. Also, the Al Adhan with QA and Doha as the city is not working.

image

Khiro95 commented 4 months ago

In Islamic Finder tab, the country code for Qatar is QA but there is no Zip Code at all. Putting 0000 or 00000 or 000000 is still not working. Also, the Al Adhan with QA and Doha as the city is not working.

image

That's really interesting, I never thought of such case.

However, Al Adhan service works fine and it seems that you forgot to change the Service provider in General in Settings panel image

sfksuperman commented 4 months ago

Thanks, at least Al Adhan is now working fine. Can we have 12h clock instead of 24h?

Khiro95 commented 4 months ago

Thanks, at least Al Adhan is now working fine. Can we have 12h clock instead of 24h?

Of course :)

But please open a new issue for any problem/suggestion/proposal, so this way I can track them easily :)

byakuyaxgara commented 4 months ago

جزاك الله خيرا

Khiro95 commented 4 months ago

جزاك الله خيرا

آمين