diff --git a/src/kits/interface/InterfaceDefs.cpp b/src/kits/interface/InterfaceDefs.cpp index af81bb6e57..5914ebe129 100644 --- a/src/kits/interface/InterfaceDefs.cpp +++ b/src/kits/interface/InterfaceDefs.cpp @@ -746,10 +746,11 @@ set_ui_color(const color_which &which, const rgb_color &color) return; } - if (be_app) { - server_read_only_memory* shared = BApplication::Private::ServerReadOnlyMemory(); - shared->colors[index] = color; - } + BPrivate::AppServerLink link; + link.StartMessage(AS_SET_UI_COLOR); + link.Attach(which); + link.Attach(color); + link.Flush(); }