change table colors (WinUI3) newapi

Thu, 12 Oct 2023 13:51:44 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Thu, 12 Oct 2023 13:51:44 +0200
branch
newapi
changeset 210
83556205edad
parent 209
770b3548906c
child 211
5d71a36b833b

change table colors (WinUI3)

ui/winui/table.cpp file | annotate | diff | comparison | revisions
--- a/ui/winui/table.cpp	Wed Oct 11 23:36:03 2023 +0200
+++ b/ui/winui/table.cpp	Thu Oct 12 13:51:44 2023 +0200
@@ -70,7 +70,7 @@
 	uitable->getvalue = args.model->getvalue ? args.model->getvalue : args.getvalue;
 
 	// grid styling
-	winrt::Windows::UI::Color bg = { 233, 233, 255, 255 }; // test color
+	winrt::Windows::UI::Color bg = { 255, 255, 255, 255 }; // test color
 	SolidColorBrush brush = SolidColorBrush(bg);
 	grid.Background(brush);
 
@@ -109,16 +109,16 @@
 	this->scrollw = scrollw;
 	this->grid = grid;
 
-	winrt::Windows::UI::Color highlightBg = { 120, 120, 255, 255 }; // test color
+	winrt::Windows::UI::Color highlightBg = { 255, 234, 234, 234 };
 	highlightBrush = SolidColorBrush(highlightBg);
 
 	winrt::Windows::UI::Color defaultBg = { 0, 0, 0, 0 }; // default
 	defaultBrush = SolidColorBrush(defaultBg);
 
-	winrt::Windows::UI::Color selectedBg = { 255, 120, 120, 255 }; // test color
+	winrt::Windows::UI::Color selectedBg = { 255, 204, 232, 255 }; // test color
 	selectedBrush = SolidColorBrush(selectedBg);
 
-	winrt::Windows::UI::Color selectedFg = { 255, 20, 20, 255 }; // test color
+	winrt::Windows::UI::Color selectedFg = { 255, 0, 90, 158 }; // test color
 	selectedBorderBrush = SolidColorBrush(selectedFg);
 }
 

mercurial