Selection color from accent color
Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
@@ -34,6 +34,12 @@ auto App::tick() -> void
|
||||
|
||||
{
|
||||
assert(m_gui);
|
||||
|
||||
m_gui->style().preedit_color = theme().foreground_preedit;
|
||||
m_gui->style().text_color = theme().foreground;
|
||||
m_gui->style().selection_color = m_accent_color;
|
||||
m_gui->style().selection_text_color = WHITE;
|
||||
|
||||
u32 rune { 0 };
|
||||
if (!m_kbd.typing.empty()) {
|
||||
rune = m_kbd.typing.back();
|
||||
@@ -47,8 +53,7 @@ auto App::tick() -> void
|
||||
static_cast<float>(GetScreenWidth()),
|
||||
static_cast<float>(GetScreenHeight()),
|
||||
};
|
||||
auto result = m_gui->text_input(1, text_input_data, input_rect,
|
||||
{ .text_color = theme().foreground });
|
||||
auto result = m_gui->text_input(1, text_input_data, input_rect);
|
||||
if (result.test(1))
|
||||
m_ime.surrounding_dirty = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user