-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
135 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.