aboutsummaryrefslogtreecommitdiff
path: root/src/ui/UiManager.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-12-24 23:57:51 +0800
committercrupest <crupest@outlook.com>2020-12-24 23:57:51 +0800
commitd23cdd9c6f2fbec1329c704bde7e183b5ef07e2e (patch)
treef081f50453b4896bcf09811f7fc3a11a3a890593 /src/ui/UiManager.cpp
parentc80808cf38b863f3bd84400eb7cf948d461238e0 (diff)
downloadcru-d23cdd9c6f2fbec1329c704bde7e183b5ef07e2e.tar.gz
cru-d23cdd9c6f2fbec1329c704bde7e183b5ef07e2e.tar.bz2
cru-d23cdd9c6f2fbec1329c704bde7e183b5ef07e2e.zip
...
Diffstat (limited to 'src/ui/UiManager.cpp')
-rw-r--r--src/ui/UiManager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/UiManager.cpp b/src/ui/UiManager.cpp
index 07812a96..5b4d4931 100644
--- a/src/ui/UiManager.cpp
+++ b/src/ui/UiManager.cpp
@@ -98,6 +98,12 @@ UiManager::UiManager() {
BorderStyler::Create(ApplyBorderStyleInfo{
CreateSolidColorBrush(factory, Color::FromHex(0x495057))}),
u"DefaultTextBoxFocus"});
+
+ theme_resource_.menu_item_style.AddStyleRule(
+ {NoCondition::Create(),
+ BorderStyler::Create(
+ ApplyBorderStyleInfo{std::nullopt, Thickness{0}, CornerRadius{0}}),
+ u"DefaultMenuItem"});
}
UiManager::~UiManager() = default;