From 74f82e6540390cf3cdfb71d04b85f4f249957932 Mon Sep 17 00:00:00 2001 From: Boldi Date: Mon, 8 Jul 2024 17:16:12 +0100 Subject: [PATCH] Fix typos --- zxlive/settings.py | 8 ++++---- zxlive/settings_dialog.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/zxlive/settings.py b/zxlive/settings.py index d4e6c8b..003d450 100644 --- a/zxlive/settings.py +++ b/zxlive/settings.py @@ -86,7 +86,7 @@ class ColorScheme(TypedDict): | tikz_layout_defaults | tikz_names_defaults -moder_red_green: ColorScheme = { +modern_red_green: ColorScheme = { "id": 'modern-red-green', "label": "Modern Red & Green", "z_spider": QColor("#ccffcc"), @@ -104,7 +104,7 @@ class ColorScheme(TypedDict): "outline": QColor("#000000"), } -classic_red_green: ColorScheme = moder_red_green | { +classic_red_green: ColorScheme = modern_red_green | { "id": "classic-red-green", "label": "Classic Red & Green", "z_spider": QColor("#00ff00"), @@ -113,7 +113,7 @@ class ColorScheme(TypedDict): "x_spider_pressed": QColor("#dd0b00"), } -white_gray: ColorScheme = moder_red_green | { +white_gray: ColorScheme = modern_red_green | { "id": 'white-grey', "label": "Dodo book White & Grey", "z_spider": QColor("#ffffff"), @@ -134,7 +134,7 @@ class ColorScheme(TypedDict): } color_schemes = { - scheme["id"]: scheme for scheme in [moder_red_green, classic_red_green, white_gray, gidney] + scheme["id"]: scheme for scheme in [modern_red_green, classic_red_green, white_gray, gidney] } color_scheme_ids = list(color_schemes.keys()) diff --git a/zxlive/settings_dialog.py b/zxlive/settings_dialog.py index e55c727..88d99ac 100644 --- a/zxlive/settings_dialog.py +++ b/zxlive/settings_dialog.py @@ -16,7 +16,7 @@ from __future__ import annotations from enum import IntEnum -from typing import TYPE_CHECKING, Dict, Any, TypeVar, Type, overload +from typing import TYPE_CHECKING, Dict, Any, Type from typing_extensions import TypedDict, NotRequired from PySide6.QtCore import QSettings @@ -74,7 +74,7 @@ class SettingsData(TypedDict): {"id": "path/custom-rules", "label": "Custom rules path", "type": FormInputType.Folder}, {"id": "color-scheme", "label": "Color scheme", "type": FormInputType.Combo, "data": color_scheme_data}, {"id": "tab-bar-location", "label": "Tab bar location", "type": FormInputType.Combo, "data": tab_positioning_data}, - {"id": "snap-granularity", "label": "Snap-to-grid granularity", "type": FormInputType.Combo, "data": snap_to_grpid_data}, + {"id": "snap-granularity", "label": "Snap-to-grid granularity", "type": FormInputType.Combo, "data": snap_to_grid_data}, {"id": "input-circuit-format", "label": "Input Circuit as", "type": FormInputType.Combo, "data": input_circuit_formats}, ]