diff options
author | crupest <crupest@outlook.com> | 2020-03-03 00:39:10 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-03-03 00:39:10 +0800 |
commit | b0946c0e6dc163fe981f230302a1976449150907 (patch) | |
tree | 3786417609ec00e42c0e9a102c39238135dfc9b5 /src/ui/controls/text_block.cpp | |
parent | ebb8f7beba71fc0d3cd81f60559e4005e05e48d5 (diff) | |
download | cru-b0946c0e6dc163fe981f230302a1976449150907.tar.gz cru-b0946c0e6dc163fe981f230302a1976449150907.tar.bz2 cru-b0946c0e6dc163fe981f230302a1976449150907.zip |
...
Diffstat (limited to 'src/ui/controls/text_block.cpp')
-rw-r--r-- | src/ui/controls/text_block.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ui/controls/text_block.cpp b/src/ui/controls/text_block.cpp index 333b44c8..9d01dee9 100644 --- a/src/ui/controls/text_block.cpp +++ b/src/ui/controls/text_block.cpp @@ -7,12 +7,10 @@ namespace cru::ui::controls { using render::TextRenderObject; TextBlock::TextBlock() { - const auto predefined_resources = - UiManager::GetInstance()->GetPredefineResources(); + const auto theme_resources = UiManager::GetInstance()->GetThemeResources(); render_object_ = std::make_unique<TextRenderObject>( - predefined_resources->text_block_text_brush, - predefined_resources->text_block_font, - predefined_resources->text_block_selection_brush); + theme_resources->text_brush, theme_resources->default_font, + theme_resources->text_selection_brush); render_object_->SetAttachedControl(this); } |