From 96d7851439cb4c2a0accc9de9cb038b0afa78979 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Fri, 30 Jun 2023 13:24:09 -0700 Subject: [PATCH] libsysprof-gtk: setup style tweaks to test the window --- src/libsysprof-gtk/style.css | 3 +- src/libsysprof-gtk/tests/test-charts.c | 1 + src/libsysprof-gtk/tests/test-tracks.c | 2 ++ src/libsysprof-gtk/tests/test-tracks.ui | 46 ++++++++++++++++++++++--- 4 files changed, 46 insertions(+), 6 deletions(-) diff --git a/src/libsysprof-gtk/style.css b/src/libsysprof-gtk/style.css index 8ecb86d9..947b86c9 100644 --- a/src/libsysprof-gtk/style.css +++ b/src/libsysprof-gtk/style.css @@ -74,14 +74,13 @@ markchart { timeruler { font-size: 0.833em; color: alpha(currentColor, .8); - background: alpha(@borders, .25); } tracks track chart { margin-top: 1px; } tracks track info { - background: alpha(@borders, .5); + background: alpha(@borders, .25); } tracks track info button { min-height: 0px; diff --git a/src/libsysprof-gtk/tests/test-charts.c b/src/libsysprof-gtk/tests/test-charts.c index d7655c29..e2c78622 100644 --- a/src/libsysprof-gtk/tests/test-charts.c +++ b/src/libsysprof-gtk/tests/test-charts.c @@ -21,6 +21,7 @@ #include "config.h" #include +#include #include #include diff --git a/src/libsysprof-gtk/tests/test-tracks.c b/src/libsysprof-gtk/tests/test-tracks.c index b7f65182..295d53bc 100644 --- a/src/libsysprof-gtk/tests/test-tracks.c +++ b/src/libsysprof-gtk/tests/test-tracks.c @@ -22,6 +22,7 @@ #include #include +#include #include #include @@ -169,6 +170,7 @@ main (int argc, gtk_init (); adw_init (); + panel_init (); g_option_context_add_main_entries (context, entries, NULL); if (!g_option_context_parse (context, &argc, &argv, &error)) diff --git a/src/libsysprof-gtk/tests/test-tracks.ui b/src/libsysprof-gtk/tests/test-tracks.ui index 7b4730df..f24feecc 100644 --- a/src/libsysprof-gtk/tests/test-tracks.ui +++ b/src/libsysprof-gtk/tests/test-tracks.ui @@ -4,15 +4,53 @@ raised + raised + + + + + 25 + 25 + center + ellipsize-end + + + tab_view + + + + + + + + + + + tab_view - - - TestTracks - + + + + + + + TestTracks + + + + + + + TestTracks + + + + +