Opened 16 years ago
Last modified 5 years ago
#3746 assigned enhancement
Can't reset default background colour in Background Preferences
Reported by: | haiqu | Owned by: | Janus |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Preferences/Backgrounds | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
New functioanlity in Haiku allows the user to select a background colour using RGB sliders. There is a "Revert" button which goes back to the previous colour selected, but no "Default" button to reset to the original colour once it is lost.
There is a workaround. By setting the number of workspace to +1 and moving to the new one, you can see that the values are 51, 102, 152 and then correct the problem. But this probably wouldn't occur to a new user.
Attachments (2)
Change History (17)
comment:1 by , 15 years ago
Component: | Preferences/Screen → Preferences/Backgrounds |
---|---|
Owner: | changed from | to
comment:2 by , 13 years ago
+1 on this one. There should be a Defaults button that resets Backgrounds to its default setting.
comment:3 by , 9 years ago
Milestone: | R1 → Unscheduled |
---|---|
Owner: | changed from | to
Status: | new → assigned |
Version: | R1/pre-alpha1 → R1/Development |
by , 8 years ago
Attachment: | 0001-Backgrounds-3746-Can-t-reset-default-background-colo.patch added |
---|
comment:4 by , 8 years ago
patch: | 0 → 1 |
---|
comment:5 by , 8 years ago
You're missing a .AddStrut(B_USE_DEFAULT_ITEME_SPACING) between the Defaults and Revert buttons.
And the Defaults button should pretty much always be enabled. Now it's disabling when the user presses "Apply" and only becomes enabled again when the colour picker is manipulated. One could use the DesktopColor() call on the current BScreen to see if the defaults are already set and disable the Defaults button if that's the case. But personally, I wouldn't be bothered if the button were just always enabled...
comment:6 by , 8 years ago
Thank you for code review. I am adding a second patch, on top of the previous, with fixes.
by , 8 years ago
Attachment: | 0002-Backgrounds-3746-Can-t-reset-default-background-colo.patch added |
---|
comment:7 by , 8 years ago
I'm sorry I'm so piece-meal with my comments... I just realized that "Defaults" is not only about the background colours, other settings have to be considered as well. What's the default placement? Icon label outline is "off" I'd say.
Now, what about the image? Is setting to "None" correct? Or do we have to revert to the manually placed Haiku background? Where is that background in the Haiku image? Can anyone shed some light?
comment:8 by , 8 years ago
Yes, a default button should revert to the default settings. That makes some things a little tricky however:
- Desktop color: you can get it from ui_color, so no problem
- Icon outline: I don't remember what the default setting is, but it should be restored
- Background: there is a default background, but only in "official" distro compatibility mode. I think the best way here would be to detect if the file is available, and only if it is, restore it. Otherwise, set no background at all. The logo is in system/data/artwork (part of the haiku package), there are a white and a black version. The white one is used by default.
comment:9 by , 8 years ago
This is very tricky the user can change the Background of folders. If a user changes some folders, after that changes some workspaces. What is the expected "Default" button behavior?
follow-up: 11 comment:10 by , 8 years ago
I'd say that is determined with the pop-up at the top. If it's all/current workspace, it applies the workspace defaults, if it's set to folder it applies the folder defaults (no image, white).
follow-up: 12 comment:11 by , 8 years ago
Replying to humdinger:
I'd say that is determined with the pop-up at the top. If it's all/current workspace, it applies the workspace defaults, if it's set to folder it applies the folder defaults (no image, white).
I was thinking more of the revert button.
comment:12 by , 8 years ago
Replying to Janus:
I was thinking more of the revert button.
We only have very few preferences that aren't live and have an "Apply" button instead. In "Screen" the "Revert" button reverts to the state when the panel was opened. In "Email" the "Revert" button seems to revert the change since the "Apply" button was last clicked.
I'd go with option 1: revert to the state when the panel was opened.
comment:13 by , 7 years ago
patch: | 1 → 0 |
---|
comment:15 by , 5 years ago
Summary: | Can't reset default background colour in Screen Preferences → Can't reset default background colour in Background Preferences |
---|
That's obviously the Background preferences...