#16412: Problems changing Decorators/ControlLooks
-------------------------------------+-------------------------
Reporter: bitigchi | Owner: jscipione
Type: bug | Status: reopened
Priority: normal | Milestone: Unscheduled
Component: Preferences/Appearance | Version: R1/beta2
Resolution: | Keywords:
Blocked By: | Blocking:
Platform: All |
-------------------------------------+-------------------------
Comment (by jscipione):
I see what's going on. The problem only presents itself on non-English
locale with a translated "Default" decorator which is why as a mono-
lingual English speaking American I was not able to reproduce the problem
on my system.
In app server [0] we look for the word "Default" to see if the Default
decorator is loaded which is why it doesn't load the Default decorator in
a non-English locale. It is difficult to translate the word "Default" in
app server to compare against because we don't have access to the
Appearance catalog there.
While it is possible to import the catalog from Appearance to get the
translation for "Default", a better solution I think is to identify the
Default decorator in app server using a blank string "" instead of using
the string "Default". We're already doing this for ControlLook so we
should copy this behavior for Decorator. By looking for a blank string
instead of "Default" we sidestep the string comparison problem and if your
settings file gets messed up app server will load the Default decorator.
[0] https://git.haiku-
os.org/haiku/tree/src/servers/app/decorator/DecorManager.cpp#n279
--
Ticket URL: <https://dev.haiku-os.org/ticket/16412#comment:23>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.