[controller] set_color as integers + bugui update
This commit is contained in:
parent
e8a804d0be
commit
01f6edc127
3 changed files with 5 additions and 5 deletions
2
Hardware/3rdparty/bugui
vendored
2
Hardware/3rdparty/bugui
vendored
|
@ -1 +1 @@
|
|||
Subproject commit da8232c87e993f97e7cfc9efb23f87d0d32e0e8c
|
||||
Subproject commit c71a9c1e02e3364a16edf3664ca6ef40898b9635
|
|
@ -109,19 +109,19 @@ void Controller::setup_scenario(Scenario::ProcessModel* s)
|
|||
[this] { update(); });
|
||||
}
|
||||
|
||||
void Controller::on_interval_changed(const Scenario::IntervalModel &)
|
||||
void Controller::on_interval_changed(const Scenario::IntervalModel&)
|
||||
{
|
||||
update();
|
||||
}
|
||||
|
||||
void Controller::paint(bugui::painter &painter)
|
||||
void Controller::paint(bugui::painter& painter)
|
||||
{
|
||||
if (!scenar) return;
|
||||
|
||||
// Copied from MiniscenarioView
|
||||
auto& skin = Process::Style::instance();
|
||||
const auto col = skin.IntervalBase().color();
|
||||
painter.set_color(col.redF(), col.greenF(), col.blackF(), col.alphaF());
|
||||
painter.set_color(col.red(), col.green(), col.black(), col.alpha());
|
||||
|
||||
for(const Scenario::IntervalModel& c : scenar->intervals)
|
||||
{
|
||||
|
|
|
@ -24,7 +24,7 @@ public:
|
|||
private:
|
||||
Scenario::ProcessModel* scenar;
|
||||
|
||||
void on_interval_changed(const Scenario::IntervalModel &);
|
||||
void on_interval_changed(const Scenario::IntervalModel&);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue