Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
exosphere
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
Exosphere
exosphere
Commits
9faa4617
Commit
9faa4617
authored
3 years ago
by
Chris Martin
Browse files
Options
Downloads
Patches
Plain Diff
Fix colors of chart axis labelswhen app is in dark mode
parent
05943db4
No related branches found
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Page/ServerResourceUsageCharts.elm
+23
-8
23 additions, 8 deletions
src/Page/ServerResourceUsageCharts.elm
with
23 additions
and
8 deletions
src/Page/ServerResourceUsageCharts.elm
+
23
−
8
View file @
9faa4617
...
...
@@ -52,18 +52,33 @@ view context widthPx ( currentTime, timeZone ) timeSeriesDict =
percentRange
getDataFunc
=
let
tick
percent
=
let
label
=
Junk
.
label
context
.
palette
.
on
.
background
(
String
.
fromInt
percent
++
"
%"
)
in
Tick
.
custom
{
position
=
toFloat
percent
,
color
=
context
.
palette
.
on
.
background
,
width
=
2
,
length
=
2
,
grid
=
True
,
direction
=
Tick
.
negative
,
label
=
Just
label
}
ticks
=
Ticks
.
custom
<|
\
_
_
->
[
T
ick
.
int
0
,
T
ick
.
int
25
,
T
ick
.
int
50
,
T
ick
.
int
75
,
T
ick
.
int
100
[
t
ick
0
,
t
ick
25
,
t
ick
50
,
t
ick
75
,
t
ick
100
]
in
Axis
.
custom
{
title
=
Title
.
default
"
Percent
"
{
title
=
Title
.
default
"
"
,
variable
=
Just
<<
getDataFunc
,
pixels
=
220
,
range
=
Range
.
window
0
100
...
...
@@ -75,14 +90,14 @@ view context widthPx ( currentTime, timeZone ) timeSeriesDict =
customTick
number
=
let
label
=
Junk
.
label
Colors
.
b
l
ack
(
millisecond_to_str
number
)
Junk
.
label
context
.
palette
.
on
.
back
ground
(
millisecond_to_str
number
)
even
=
modBy
20
number
==
0
in
Tick
.
custom
{
position
=
toFloat
number
,
color
=
Colors
.
b
l
ack
,
color
=
context
.
palette
.
on
.
back
ground
,
width
=
2
,
length
=
2
,
grid
=
even
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment