Renamed expr_color to color
This commit is contained in:
@@ -59,7 +59,7 @@ namespace nana{ namespace drawerbase {
|
||||
|
||||
editor_ = new text_editor(wd, graph);
|
||||
editor_->textbase().set_event_agent(evt_agent_.get());
|
||||
editor_->border_renderer([this](graph_reference graph, const ::nana::expr_color& clr){
|
||||
editor_->border_renderer([this](graph_reference graph, const ::nana::color& clr){
|
||||
this->_m_draw_border(graph, clr);
|
||||
});
|
||||
|
||||
@@ -177,12 +177,12 @@ namespace nana{ namespace drawerbase {
|
||||
}
|
||||
}
|
||||
|
||||
void drawer::_m_draw_border(graph_reference graph, const ::nana::expr_color& bgcolor)
|
||||
void drawer::_m_draw_border(graph_reference graph, const ::nana::color& bgcolor)
|
||||
{
|
||||
if (!API::widget_borderless(widget_->handle()))
|
||||
{
|
||||
nana::rectangle r(graph.size());
|
||||
graph.rectangle(r, false, (status_.has_focus ? ::nana::expr_color(0x05, 0x95, 0xE2) : ::nana::expr_color(0x99, 0x9A, 0x9E)));
|
||||
graph.rectangle(r, false, (status_.has_focus ? ::nana::color(0x05, 0x95, 0xE2) : ::nana::color(0x99, 0x9A, 0x9E)));
|
||||
graph.rectangle(r.pare_off(1), false, bgcolor);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user