Mark certain ui elements as transparent only if they don't have a hint
This commit is contained in:
parent
05f777f398
commit
727db57092
4 changed files with 4 additions and 4 deletions
|
|
@ -52,7 +52,7 @@ namespace psemek::ui
|
|||
struct shape const & shape() const override { return shape_; }
|
||||
void reshape(geom::box<float, 2> const & bbox) override;
|
||||
|
||||
bool transparent() const override { return true; }
|
||||
bool transparent() const override { return !hint(); }
|
||||
|
||||
void draw(painter &) const override {}
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ namespace psemek::ui
|
|||
|
||||
geom::box<float, 2> size_constraints() const override;
|
||||
|
||||
bool transparent() const override { return true; }
|
||||
bool transparent() const override { return !hint(); }
|
||||
|
||||
void draw(painter & p) const override;
|
||||
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ namespace psemek::ui
|
|||
void style_updated() override;
|
||||
void own_style_updated() override;
|
||||
|
||||
bool transparent() const override { return true; }
|
||||
bool transparent() const override { return !hint(); }
|
||||
|
||||
void draw(painter & p) const override;
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ namespace psemek::ui
|
|||
|
||||
geom::box<float, 2> size_constraints() const override;
|
||||
|
||||
bool transparent() const override { return true; }
|
||||
bool transparent() const override { return !hint(); }
|
||||
|
||||
void draw(painter &) const override {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue