Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
gnome-usage
Commits
a4529d47
Commit
a4529d47
authored
Oct 27, 2016
by
Petr Štětka
Browse files
Styling cpu graph.
parent
fdc0f080
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cpu-graph.vala
View file @
a4529d47
...
...
@@ -2,16 +2,15 @@ using Rg;
namespace
Usage
{
private
const
string
red_color
=
"#ee2222"
;
private
const
string
blue_color
=
"#4a90d9"
;
/**
* Graph showing most used core
**/
public
class
CpuGraphMostUsed
:
Rg
.
Graph
{
private
static
CpuGraphTableMostUsedCore
table
;
LineRenderer
renderer
;
private
LineRenderer
renderer
;
private
const
string
red_color
=
"#ee2222"
;
private
const
string
blue_color
=
"#4a90d9"
;
public
CpuGraphMostUsed
()
{
...
...
@@ -45,6 +44,8 @@ namespace Usage
{
private
static
CpuGraphTableComplex
table
;
private
LineRenderer
[]
renderers
;
private
const
string
red_color
=
"#ee2222"
;
private
const
string
blue_color
=
"#a8c9ed"
;
public
CpuGraphAllCores
()
{
...
...
@@ -62,7 +63,7 @@ namespace Usage
renderers
[
i
]
=
new
LineRenderer
();
renderers
[
i
].
column
=
i
;
renderers
[
i
].
stroke_color
=
blue_color
;
renderers
[
i
].
line_width
=
2
;
renderers
[
i
].
line_width
=
2
.5
;
add_renderer
(
renderers
[
i
]);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment