From a29d04f06238b76cdc83b23baf70f15b7aa18149 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Mon, 7 Aug 2023 15:29:30 -0400 Subject: [PATCH] Add DarkPJ301MPort to component library. --- include/componentlibrary.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/componentlibrary.hpp b/include/componentlibrary.hpp index 40236012..63dffd80 100644 --- a/include/componentlibrary.hpp +++ b/include/componentlibrary.hpp @@ -783,6 +783,12 @@ struct PJ301MPort : app::SvgPort { } }; +struct DarkPJ301MPort : app::SvgPort { + DarkPJ301MPort() { + setSvg(Svg::load(asset::system("res/ComponentLibrary/PJ301M-dark.svg"))); + } +}; + struct ThemedPJ301MPort : app::ThemedSvgPort { ThemedPJ301MPort() { setSvg(Svg::load(asset::system("res/ComponentLibrary/PJ301M.svg")), Svg::load(asset::system("res/ComponentLibrary/PJ301M-dark.svg")));