Commit graph

1529 commits

Author SHA1 Message Date
Ian Douglas Scott
87eb5e173b Create seperate widget for status menu 2021-08-30 07:58:04 -07:00
Ian Douglas Scott
1c2e1fbe5b Accessor methods, better debug for menu 2021-08-27 10:44:35 -07:00
Ian Douglas Scott
91638fae8b Button style
How to get `MenuButton` to be "flat"?
2021-08-26 22:21:15 -07:00
Ian Douglas Scott
e26ae62532 Use IsA<Window> 2021-08-26 22:04:07 -07:00
Ian Douglas Scott
cf63465320 Actually use window size to determine space to reserve 2021-08-26 22:00:48 -07:00
Ian Douglas Scott
223b4c5ba0 Subclass gtk4::Window 2021-08-26 21:54:51 -07:00
Ian Douglas Scott
a1edaa2f62 WIP window size detection code 2021-08-26 21:14:58 -07:00
Ian Douglas Scott
fa6108ff22 Select current day when calendar opened 2021-08-26 20:51:57 -07:00
Ian Douglas Scott
4c799a2bed WIP code for getting layout from menu 2021-08-26 16:09:25 -07:00
Ian Douglas Scott
9fca893fe1 Detect registered/unregisterered in StatusArea 2021-08-26 15:04:01 -07:00
Ian Douglas Scott
720c40f5f2 Initial implementation of StatusArea
Just shows icons, and doesn't handle added/removed icons.
2021-08-26 14:22:48 -07:00
Ian Douglas Scott
843fba67b1 Add StatusArea widget
A palceholder, for now.
2021-08-26 13:50:54 -07:00
Ian Douglas Scott
121c759904 Load image only if uri changed 2021-08-26 13:42:06 -07:00
Ian Douglas Scott
80bfe912aa Set play/pause icon depending on state 2021-08-26 13:27:58 -07:00
Ian Douglas Scott
d28bbe2471 Show some media metadata 2021-08-26 13:22:33 -07:00
Ian Douglas Scott
1145729a9e More work on mpris controls: buttons now work 2021-08-26 11:00:43 -07:00
Ian Douglas Scott
0ccab6df13 Move time_button into its own custom widget 2021-08-26 10:22:47 -07:00
Ian Douglas Scott
4d38b39dd5 Move functions into methods 2021-08-26 10:09:56 -07:00
Ian Douglas Scott
d954a8155d Add .gitignore 2021-08-25 19:01:39 -07:00
Ian Douglas Scott
4917422f21 Start implementing media controls 2021-08-25 19:00:59 -07:00
Ian Douglas Scott
6b64b2e998 No arrow on date 2021-08-25 17:17:21 -07:00
Ian Douglas Scott
d97ac0ea12 Add LICENSE
Perhaps GPL is appropriate, but MIT for now, since a lot of the code may
move to a library later (anything specific to X11/Wayland, etc.).
2021-08-25 15:06:11 -07:00
Ian Douglas Scott
1c92507470 Rename crate to pop-cosmic-panel 2021-08-25 09:01:37 -07:00
Ian Douglas Scott
9fcd57c97f Show correct time 2021-08-24 19:08:48 -07:00
Ian Douglas Scott
94a563b436 Set WM_STATE correctly 2021-08-24 16:14:52 -07:00
Ian Douglas Scott
4886fe6d17 Move window correctly 2021-08-24 15:14:12 -07:00
Ian Douglas Scott
2020885cce WIP set position (not working) 2021-08-24 15:13:38 -07:00
Ian Douglas Scott
7fbbefa134 Use _NET_WM_STRUT_PARTIAL
Still not working quite correctly...
2021-08-24 14:30:27 -07:00
Ian Douglas Scott
ae1ab55421 Initial WIP code 2021-08-24 14:14:08 -07:00