mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 00:36:38 -04:00
Replace day/night with light/dark
This commit is contained in:
parent
eb72e299e9
commit
c909ca245f
1 changed files with 4 additions and 4 deletions
|
@ -77,7 +77,7 @@ class CellRow:
|
||||||
|
|
||||||
|
|
||||||
def backend_color_to_aqt_color(color: BrowserRow.Color.V) -> dict[str, str] | None:
|
def backend_color_to_aqt_color(color: BrowserRow.Color.V) -> dict[str, str] | None:
|
||||||
temp_color = None
|
temp_color = {}
|
||||||
|
|
||||||
if color == BrowserRow.COLOR_MARKED:
|
if color == BrowserRow.COLOR_MARKED:
|
||||||
temp_color = colors.STATE_MARKED
|
temp_color = colors.STATE_MARKED
|
||||||
|
@ -102,9 +102,9 @@ def backend_color_to_aqt_color(color: BrowserRow.Color.V) -> dict[str, str] | No
|
||||||
|
|
||||||
|
|
||||||
def adjusted_bg_color(color: dict[str, str]) -> dict[str, str]:
|
def adjusted_bg_color(color: dict[str, str]) -> dict[str, str]:
|
||||||
if color:
|
if "light" in color and "dark" in color:
|
||||||
color["day"] = color.day.lighter(150).name()
|
color.light = color.light.lighter(150).name()
|
||||||
color["night"] = color.night.darker(150).name()
|
color.dark = color.dark.darker(150).name()
|
||||||
return color
|
return color
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in a new issue