mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof-gtk: setup style tweaks to test the window
This commit is contained in:
@ -74,14 +74,13 @@ markchart {
|
|||||||
timeruler {
|
timeruler {
|
||||||
font-size: 0.833em;
|
font-size: 0.833em;
|
||||||
color: alpha(currentColor, .8);
|
color: alpha(currentColor, .8);
|
||||||
background: alpha(@borders, .25);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tracks track chart {
|
tracks track chart {
|
||||||
margin-top: 1px;
|
margin-top: 1px;
|
||||||
}
|
}
|
||||||
tracks track info {
|
tracks track info {
|
||||||
background: alpha(@borders, .5);
|
background: alpha(@borders, .25);
|
||||||
}
|
}
|
||||||
tracks track info button {
|
tracks track info button {
|
||||||
min-height: 0px;
|
min-height: 0px;
|
||||||
|
|||||||
@ -21,6 +21,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <adwaita.h>
|
#include <adwaita.h>
|
||||||
|
#include <libpanel.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
#include <sysprof-analyze.h>
|
#include <sysprof-analyze.h>
|
||||||
|
|||||||
@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
#include <adwaita.h>
|
#include <adwaita.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
#include <libpanel.h>
|
||||||
|
|
||||||
#include <sysprof-analyze.h>
|
#include <sysprof-analyze.h>
|
||||||
#include <sysprof-gtk.h>
|
#include <sysprof-gtk.h>
|
||||||
@ -169,6 +170,7 @@ main (int argc,
|
|||||||
|
|
||||||
gtk_init ();
|
gtk_init ();
|
||||||
adw_init ();
|
adw_init ();
|
||||||
|
panel_init ();
|
||||||
|
|
||||||
g_option_context_add_main_entries (context, entries, NULL);
|
g_option_context_add_main_entries (context, entries, NULL);
|
||||||
if (!g_option_context_parse (context, &argc, &argv, &error))
|
if (!g_option_context_parse (context, &argc, &argv, &error))
|
||||||
|
|||||||
@ -4,15 +4,53 @@
|
|||||||
<child>
|
<child>
|
||||||
<object class="AdwToolbarView">
|
<object class="AdwToolbarView">
|
||||||
<property name="top-bar-style">raised</property>
|
<property name="top-bar-style">raised</property>
|
||||||
|
<property name="bottom-bar-style">raised</property>
|
||||||
<child type="top">
|
<child type="top">
|
||||||
<object class="AdwHeaderBar">
|
<object class="AdwHeaderBar">
|
||||||
|
<child type="title">
|
||||||
|
<object class="PanelOmniBar">
|
||||||
|
<child type="prefix">
|
||||||
|
<object class="GtkInscription">
|
||||||
|
<property name="min-chars">25</property>
|
||||||
|
<property name="nat-chars">25</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="text-overflow">ellipsize-end</property>
|
||||||
|
<binding name="text">
|
||||||
|
<lookup name="title" type="AdwTabPage">
|
||||||
|
<lookup name="selected-page">tab_view</lookup>
|
||||||
|
</lookup>
|
||||||
|
</binding>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child type="top">
|
||||||
|
<object class="AdwTabBar">
|
||||||
|
<property name="view">tab_view</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<property name="content">
|
<property name="content">
|
||||||
<object class="SysprofTracksView">
|
<object class="AdwTabView" id="tab_view">
|
||||||
<binding name="session">
|
<child>
|
||||||
<lookup name="session">TestTracks</lookup>
|
<object class="AdwTabPage">
|
||||||
</binding>
|
<binding name="title">
|
||||||
|
<lookup name="title" type="SysprofDocument">
|
||||||
|
<lookup name="document" type="SysprofSession">
|
||||||
|
<lookup name="session">TestTracks</lookup>
|
||||||
|
</lookup>
|
||||||
|
</lookup>
|
||||||
|
</binding>
|
||||||
|
<property name="child">
|
||||||
|
<object class="SysprofTracksView">
|
||||||
|
<binding name="session">
|
||||||
|
<lookup name="session">TestTracks</lookup>
|
||||||
|
</binding>
|
||||||
|
</object>
|
||||||
|
</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</property>
|
</property>
|
||||||
</object>
|
</object>
|
||||||
|
|||||||
Reference in New Issue
Block a user