Skip to content

Commit

Permalink
Fix misc/moon icon
Browse files Browse the repository at this point in the history
  • Loading branch information
oclero committed Jun 29, 2024
1 parent 9374bfa commit 2fdac7b
Show file tree
Hide file tree
Showing 13 changed files with 135 additions and 43 deletions.
71 changes: 45 additions & 26 deletions docs/data/icons.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ icons:
tags:
- amplifier
- bass
- electric
- guitar
- instrument
- electric
- name: android
path: 16/brand/android.svg
tags:
Expand Down Expand Up @@ -148,9 +148,9 @@ icons:
- name: banjo
path: 16/instruments/banjo.svg
tags:
- instruments
- country
- bluegrass
- country
- instruments
- name: bass
path: 16/instruments/bass.svg
tags:
Expand Down Expand Up @@ -303,6 +303,10 @@ icons:
- shape
- success
- valid
- name: check-tick-small
path: 16/shape/check-tick-small.svg
tags:
- shape
- name: chevron-double-left
path: 16/navigation/chevron-double-left.svg
tags:
Expand Down Expand Up @@ -332,21 +336,13 @@ icons:
- navigate
- navigation
- previous
- name: chevron-left-double
path: 16/navigation/chevron-left-double.svg
tags:
- navigation
- name: chevron-right
path: 16/navigation/chevron-right.svg
tags:
- move
- navigate
- navigation
- next
- name: chevron-right-double
path: 16/navigation/chevron-right-double.svg
tags:
- navigation
- name: chevron-up
path: 16/navigation/chevron-up.svg
tags:
Expand Down Expand Up @@ -533,10 +529,6 @@ icons:
- ep
- hardware
- lp
- name: down
path: 16/action/down.svg
tags:
- action
- name: download
path: 16/action/download.svg
tags:
Expand Down Expand Up @@ -829,8 +821,8 @@ icons:
path: 16/instruments/guitar-folk.svg
tags:
- acoustic
- instruments
- folk
- instruments
- name: guitar-machine-head
path: 16/instruments/guitar-machine-head.svg
tags:
Expand Down Expand Up @@ -927,6 +919,10 @@ icons:
tags:
- identity
- misc
- name: idiophone
path: 16/instruments/idiophone.svg
tags:
- instruments
- name: inbox
path: 16/misc/inbox.svg
tags:
Expand Down Expand Up @@ -988,6 +984,10 @@ icons:
- organization
- organize
- view
- name: jack
path: 16/hardware/jack.svg
tags:
- hardware
- name: jump
path: 16/navigation/jump.svg
tags:
Expand Down Expand Up @@ -1622,11 +1622,6 @@ icons:
tags:
- instruments
- orchestra
- name: pitched_idiophone
path: 16/instruments/pitched_idiophone.svg
tags:
- instruments
- xylophone
- name: play
path: 16/media/play.svg
tags:
Expand Down Expand Up @@ -1702,6 +1697,10 @@ icons:
tags:
- help
- misc
- name: radio-tick
path: 16/shape/radio-tick.svg
tags:
- shape
- name: record
path: 16/media/record.svg
tags:
Expand Down Expand Up @@ -1874,8 +1873,8 @@ icons:
path: 16/instruments/shamisen.svg
tags:
- instruments
- traditional
- japanese
- traditional
- name: share
path: 16/action/share.svg
tags:
Expand Down Expand Up @@ -2327,8 +2326,8 @@ icons:
path: 16/instruments/ukulele.svg
tags:
- acoustic
- instruments
- guitar
- instruments
- name: unavailable
path: 16/misc/unavailable.svg
tags:
Expand All @@ -2341,10 +2340,10 @@ icons:
- action
- command
- stack
- name: up
path: 16/navigation/up.svg
- name: unknown
path: 16/misc/unknown.svg
tags:
- navigation
- misc
- name: update
path: 16/action/update.svg
tags:
Expand Down Expand Up @@ -2423,6 +2422,10 @@ icons:
- misc
- sign
- triangle
- name: wave
path: 16/misc/wave.svg
tags:
- misc
- name: webcam
path: 16/hardware/webcam.svg
tags:
Expand All @@ -2438,6 +2441,22 @@ icons:
- operating
- os
- system
- name: windows-close
path: 16/action/windows-close.svg
tags:
- action
- name: windows-maximize
path: 16/action/windows-maximize.svg
tags:
- action
- name: windows-minimize
path: 16/action/windows-minimize.svg
tags:
- action
- name: windows-unmaximize
path: 16/action/windows-unmaximize.svg
tags:
- action
- name: woodwind
path: 16/instruments/woodwind.svg
tags:
Expand Down
37 changes: 37 additions & 0 deletions sources/include/oclero/qlementine/icons/Icons12.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// SPDX-FileCopyrightText: Olivier Cléro <oclero@hotmail.com>
// SPDX-License-Identifier: MIT

// NB: This file is generated by Python. If you want to make some changes, edit the template.

#pragma once

#include <array>

namespace oclero::qlementine::icons {

enum class Icons12 : size_t {
None = 0u,
Action_Close,
Action_Minus,
Action_Plus,
Navigation_ChevronDown,
Navigation_ChevronLeft,
Navigation_ChevronRight,
Navigation_ChevronUp,
};

inline const char* iconPath(Icons12 id) {
static constexpr std::array<const char*, 8> icons{
"",
":/qlementine/icons/12/action/close.svg",
":/qlementine/icons/12/action/minus.svg",
":/qlementine/icons/12/action/plus.svg",
":/qlementine/icons/12/navigation/chevron-down.svg",
":/qlementine/icons/12/navigation/chevron-left.svg",
":/qlementine/icons/12/navigation/chevron-right.svg",
":/qlementine/icons/12/navigation/chevron-up.svg",
};

return icons[static_cast<typename std::underlying_type<Icons12>::type>(id)];
}
} // namespace oclero::qlementine::icons
Loading

0 comments on commit 2fdac7b

Please sign in to comment.