Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
0108b5eb
Commit
0108b5eb
authored
Apr 19, 2016
by
bergquist
Committed by
David Keijser
Apr 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(singlestat): adds support for lighttheme
parent
0c6841bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
public/app/plugins/panel/singlestat/module.ts
+7
-2
No files found.
public/app/plugins/panel/singlestat/module.ts
View file @
0108b5eb
...
...
@@ -7,6 +7,7 @@ import 'jquery.flot';
import
'jquery.flot.gauge'
;
import
kbn
from
'app/core/utils/kbn'
;
import
config
from
'app/core/config'
;
import
TimeSeries
from
'app/core/time_series2'
;
import
{
MetricsPanelCtrl
}
from
'app/plugins/sdk'
;
...
...
@@ -283,7 +284,7 @@ class SingleStatCtrl extends MetricsPanelCtrl {
top
:
'10px'
,
margin
:
'auto'
,
position
:
'relative'
,
height
:
elem
.
height
(
)
+
'px'
,
height
:
(
elem
.
height
()
*
0.9
)
+
'px'
,
width
:
elem
.
width
()
+
'px'
};
...
...
@@ -301,13 +302,17 @@ class SingleStatCtrl extends MetricsPanelCtrl {
color
:
data
.
colorMap
[
data
.
colorMap
.
length
-
1
]
});
var
bgColor
=
config
.
bootData
.
user
.
lightTheme
?
'rgb(230,230,230)'
:
'rgb(38,38,38)'
;
var
options
=
{
series
:
{
gauges
:
{
gauge
:
{
min
:
panel
.
gauge
.
minValue
,
max
:
panel
.
gauge
.
maxValue
,
background
:
{
color
:
'rgb(38,38,38)'
},
background
:
{
color
:
bgColor
},
border
:
{
color
:
null
},
shadow
:
{
show
:
false
},
width
:
38
...
...
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