Skip to content

Commit

Permalink
Remove changes from a hurried commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Nov 10, 2024
1 parent 5217ca6 commit 8bd9b6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion settings/appearance/color.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func ValueToColorScheme(value any) (ColorScheme, error) {
return NoPreference, ErrNotSet
}

if result > 2 || result > 255 {
if result > 2 {
result = 0 // Unknown values should be treated as 0 (no preference).
}

Expand Down
2 changes: 1 addition & 1 deletion settings/appearance/contrast.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func ValueToContrast(value any) (Contrast, error) {
return NormalContrast, ErrNotSet
}

if result > 1 || result > 255 {
if result > 1 {
result = 0 // Unknown values should be treated as 0 (no preference).
}

Expand Down

0 comments on commit 8bd9b6e

Please sign in to comment.