-
-
Notifications
You must be signed in to change notification settings - Fork 291
Wallpaper page UI changes #957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wallpaper page UI changes #957
Conversation
f7d1f98 to
f119739
Compare
|
@ChenYiLins I think I broke something, selecting different Radio buttons doesn't have immediate effect. Can you point me where it gone wrong? I'll try to fix it then. |
@Jay-o-Way Oh, I'm sorry, if nothing unexpected happens, there should be a problem with the event of removing ConfigWatcher. I have improved StateUpdateHandler in this PR, but only the code of TimeViewModel has been corrected after improvement. I'll test it right away, which should be the reason. |
|
@Jay-o-Way Yep. That's the problem, and the solution is simple. You just need to find the last part of the code in TimeViewModel and delete StopConfigWacher(). internal void OnViewModelNavigatedFrom(NavigationEventArgs e)
{
StateUpdateHandler.OnConfigUpdate -= HandleConfigUpdate;
// Delete
StateUpdateHandler.StopConfigWatcher();
}This means that when you navigate from TimePage to other pages, Watcher will work normally. Similarly, if you need to navigate from other pages, just delete the code in the corresponding ViewModel. At the same time, this is a temporary solution, and I will deal with this problem in the new PR immediately. |
Co-authored-by: Jay <65828559+Jay-o-Way@users.noreply.github.com>
please check and finish where needed
ba03e0a to
b1d9ff9
Compare
|
@Armin2208 @Spiritreader I think PictureMode should also have ShowFillingWaySettings and ShowColorSettings. WDYT? None = 0,
ShowImageSettings = 1,
ShowMonitorSettings = 2,
ShowFillingWaySettings = 4,
ShowColorSettings = 8,
ShowSpotlight = 16,
// Predefined combinations
PictureMode = ShowImageSettings, // add Fill and Color to handle empty desktop area?
PictureMMMode = ShowImageSettings | ShowMonitorSettings | ShowFillingWaySettings,
SolidColorMode = ShowColorSettings,
SpotlightMode = ShowSpotlight |
Windows has two wallpaper APIs. The first one corresponds to the "Picture" setting in the current UI, and the other one is "Picture - Multiple Monitors". You may expose the "Center" option as well to the PicureMMMode, as that also works with the MultiMonitor API. These are all of the options in the backend. PictureMMMode supports |
Oh, good to know! 😆 Looks like this PR is going to get bigger. I already know I need your help with changing those things. |
The previous wallpaper page in the old Pre-WinUi3 build was one of the biggest grievances @Armin2208 and I had on the UI, Some more info on the Wallpaper thing: The main problem with the old API is that it's incredibly well documented so one of dem flags may set the picture mode, but who knows ¯\(ツ)/¯ Whereas the new API is very nice to us
In order to realize the feature, it might be necessary to call the new API while using the old API OR set it in the theme file separately in a post-sync, which again is a codepath nightmare, But I digress. The reason why we left it in is because some people prefer to use the old API, as it keeps the wallpaper consistent with things like RDP sessions. If you look at this, then the old API sets Virtual Desktops work different again, I haven't looked too closely into it due to roadblocks for supported nuget packages. But yeah, that's the short story of how those options came to be. |
|
I have no idea what all these things mean, but the important thing is that you do 😆 That's why it's good that you (plural) have write-acces to PRs of mine, so you can add/change things I don't know about. (please do) |
The reason why i explained this is because you asked
and I wanted to give you a bit more context about why things are the way they are. The gist of it is: The same applies for ColorSettings, SolidColor Mode is separate from both Wallpaper modes and does not mix with them. |
off-topicDesign choice: at this moment there are two different results when a setting is Off. On the Background page, all the settings (in the expander) are hidden, but on the Cursors page they are disabled. Which is better? |
Good question. I agree it should be consistent. Will ping @Armin2208 |
This should be that I forgot to change it. My suggestion is to hide it. Because when the software runs for the first time, Cursors will not get any display. |
Code quality: Partial changeDescription
SupplementThe filling mode of Image control needs more research, and the goal is to be consistent with Windows Setting. Settings about padding may need to be matched with the backend. Things related to virtual desktop are a bit complicated now, which is a bit of a headache. Including the new API, more research is needed. |
Some questions
|
No new features please. The UI redesign should focus on the UI user experience. Wallpaper support for virtual desktop is not easy to implement and requires a complete rewrite of all of the wallpaper logic including the configuration. We don't offer this at the moment in ADM. Also, changing the solid color settings at the moment will switch the wallpaper type to solid colors completely. |
Need help getting Spotlight image. The image is here: However, when switching to Spotlight mode, there is a certain delay in updating this file, otherwise it will still be an image of Photo mode. |
|
In fact, the change of UI part has almost been completed, and the function update is waiting for the follow-up. |

Trying to follow Windows 11 Settings.
Changes
To do
Screenshot