fix: make contacts window also adopt sys colors

This commit is contained in:
hexlocation 2025-02-08 21:06:39 +00:00
parent 0a678e6f55
commit 52a92b1065

View file

@ -1,5 +1,7 @@
#include "Contacts.h"
#include <Application.h>
#include <GroupLayout.h>
#include <InterfaceDefs.h>
#include <Rect.h>
#include <Window.h>
#include <StringView.h>
@ -7,5 +9,10 @@
Contacts::Contacts(void)
: BWindow(BRect(200,200,600,400), TITLE, B_TITLED_WINDOW, B_NOT_MINIMIZABLE | B_QUIT_ON_WINDOW_CLOSE)
{
AddChild(new BStringView("label", "Placeholder label (contact list to be added)"));
BGroupLayout *group = new BGroupLayout(B_VERTICAL);
SetLayout(group);
group->View()->AdoptSystemColors();
group->AddView(new BStringView("label", "Placeholder label (contact list to be added)"));
}