- Added operator = implementation to rgb_color for convenience.
- Major cleanup of Appearance prefs - colors are now dynamically read from the app_server, and updating them also works, but triggers a bug: the state of the current window somehow gets confused, i.e. if I update the panel background color, for some reason the color of the BButtons in the appearance pref change color and also the textviews begin misbehaving. Have not yet tracked down the cause of this, but newly created windows after making the change do show up with the updated color and behave properly. Also vastly simplified the pref and cleaned up some obsolete definitions. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24185 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -101,6 +101,12 @@ typedef struct rgb_color {
|
||||
{
|
||||
return *(const uint32 *)this != *(const uint32 *)&other;
|
||||
}
|
||||
|
||||
inline rgb_color&
|
||||
operator=(const rgb_color& other)
|
||||
{
|
||||
return set_to(other.red, other.green, other.blue, other.alpha);
|
||||
}
|
||||
#endif
|
||||
} rgb_color;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user