mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Use wavy flags (flag-alternative) (#1995)
This commit is contained in:
parent
8a62e9c95e
commit
3e28605638
6 changed files with 13 additions and 13 deletions
|
@ -58,7 +58,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@floating-ui/dom": "^0.3.0",
|
"@floating-ui/dom": "^0.3.0",
|
||||||
"@fluent/bundle": "^0.17.0",
|
"@fluent/bundle": "^0.17.0",
|
||||||
"@mdi/svg": "^6.1.95",
|
"@mdi/svg": "^7.0.96",
|
||||||
"@popperjs/core": "^2.9.2",
|
"@popperjs/core": "^2.9.2",
|
||||||
"@types/lodash-es": "^4.17.4",
|
"@types/lodash-es": "^4.17.4",
|
||||||
"@types/marked": "^4.0.1",
|
"@types/marked": "^4.0.1",
|
||||||
|
|
|
@ -695,9 +695,9 @@ class SidebarTreeView(QTreeView):
|
||||||
###########################
|
###########################
|
||||||
|
|
||||||
def _flags_tree(self, root: SidebarItem) -> None:
|
def _flags_tree(self, root: SidebarItem) -> None:
|
||||||
icon_off = "icons:flag-off-outline.svg"
|
icon_off = "icons:flag-variant-off-outline.svg"
|
||||||
icon = "icons:flag.svg"
|
icon = "icons:flag-variant.svg"
|
||||||
icon_outline = "icons:flag-outline.svg"
|
icon_outline = "icons:flag-variant-outline.svg"
|
||||||
|
|
||||||
root = self._section_root(
|
root = self._section_root(
|
||||||
root=root,
|
root=root,
|
||||||
|
|
|
@ -14,9 +14,9 @@ copy_mdi_icons(
|
||||||
"circle-outline.svg",
|
"circle-outline.svg",
|
||||||
|
|
||||||
# flags
|
# flags
|
||||||
"flag.svg",
|
"flag-variant.svg",
|
||||||
"flag-outline.svg",
|
"flag-variant-outline.svg",
|
||||||
"flag-off-outline.svg",
|
"flag-variant-off-outline.svg",
|
||||||
|
|
||||||
# decks
|
# decks
|
||||||
"book-outline.svg",
|
"book-outline.svg",
|
||||||
|
|
|
@ -61,7 +61,7 @@ class FlagManager:
|
||||||
|
|
||||||
def _load_flags(self) -> None:
|
def _load_flags(self) -> None:
|
||||||
labels = cast(dict[str, str], self.mw.col.get_config("flagLabels", {}))
|
labels = cast(dict[str, str], self.mw.col.get_config("flagLabels", {}))
|
||||||
icon = ColoredIcon(path="icons:flag.svg", color=colors.DISABLED)
|
icon = ColoredIcon(path="icons:flag-variant.svg", color=colors.DISABLED)
|
||||||
|
|
||||||
self._flags = [
|
self._flags = [
|
||||||
Flag(
|
Flag(
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
"path": "node_modules/@humanwhocodes/object-schema",
|
"path": "node_modules/@humanwhocodes/object-schema",
|
||||||
"licenseFile": "node_modules/@humanwhocodes/object-schema/LICENSE"
|
"licenseFile": "node_modules/@humanwhocodes/object-schema/LICENSE"
|
||||||
},
|
},
|
||||||
"@mdi/svg@6.6.95": {
|
"@mdi/svg@7.0.96": {
|
||||||
"licenses": "Apache-2.0",
|
"licenses": "Apache-2.0",
|
||||||
"repository": "https://github.com/Templarian/MaterialDesign-SVG",
|
"repository": "https://github.com/Templarian/MaterialDesign-SVG",
|
||||||
"publisher": "Austin Andrews",
|
"publisher": "Austin Andrews",
|
||||||
|
|
|
@ -597,10 +597,10 @@
|
||||||
"@jridgewell/resolve-uri" "^3.0.3"
|
"@jridgewell/resolve-uri" "^3.0.3"
|
||||||
"@jridgewell/sourcemap-codec" "^1.4.10"
|
"@jridgewell/sourcemap-codec" "^1.4.10"
|
||||||
|
|
||||||
"@mdi/svg@^6.1.95":
|
"@mdi/svg@^7.0.96":
|
||||||
version "6.6.95"
|
version "7.0.96"
|
||||||
resolved "https://registry.yarnpkg.com/@mdi/svg/-/svg-6.6.95.tgz#334ef718a06889e6a02b6802020f4f35f0ad5adb"
|
resolved "https://registry.yarnpkg.com/@mdi/svg/-/svg-7.0.96.tgz#c7275a318da8594337243368c6b4dca6a90154f6"
|
||||||
integrity sha512-krWKPBPmDle424VI3cJzTEyZgL/DryScgYjmPoaMhv6cb50M7sjqPNBkE5H5fpru2fc+II2ICEWvlIM0sVW00w==
|
integrity sha512-5DC+w7Kl2C82j4aTWCUf6wtHzgY60WBf1gT1qrpkLaMNcH6Vj9FpYPAXdSmtdkmSMvVMs8i1Rtv9cXWcHFQYpw==
|
||||||
|
|
||||||
"@mdn/browser-compat-data@^3.3.14":
|
"@mdn/browser-compat-data@^3.3.14":
|
||||||
version "3.3.14"
|
version "3.3.14"
|
||||||
|
|
Loading…
Reference in a new issue