Skip to content

Commit

Permalink
use the text color for the score table for better contrast
Browse files Browse the repository at this point in the history
  • Loading branch information
ftl committed Jan 1, 2024
1 parent 5e093e5 commit 79b75c7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion ui/scoreGraph.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ func (s *scoreGraphStyle) Refresh() {
s.axisColor = s.colorProvider.ColorByName(axisColorName)
s.lowZoneColor = s.colorProvider.ColorByName(lowZoneColorName)
s.timeFrameColor = s.colorProvider.ColorByName(timeIndicatorColorName)

}

type scoreGraph struct {
Expand Down
2 changes: 2 additions & 0 deletions ui/scoreView.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"github.com/gotk3/gotk3/gtk"

"github.com/ftl/hellocontest/core"
"github.com/ftl/hellocontest/ui/style"
)

type scoreView struct {
Expand All @@ -19,6 +20,7 @@ func setupNewScoreView(builder *gtk.Builder, colors colorProvider) *scoreView {
result := &scoreView{}

result.tableLabel = getUI(builder, "tableLabel").(*gtk.Label)
style.AddClass(result.tableLabel.ToWidget(), "score_table")

result.graph = newScoreGraph(colors)
result.graphArea = getUI(builder, "scoreGraphArea").(*gtk.DrawingArea)
Expand Down
8 changes: 8 additions & 0 deletions ui/style/contest.css
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,11 @@ button.band label.max-value {
font-weight: bold;
}

/*
* Score window, table
*/

label.score_table {
background-color: @theme_bg_color;
color: @theme_text_color;
}

0 comments on commit 79b75c7

Please sign in to comment.