mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 19:28:14 -06:00
Collapse toolbar moved from GLCanvas3D to Plater::priv
This commit is contained in:
parent
1e3290fee1
commit
4f63095d9a
6 changed files with 96 additions and 79 deletions
|
@ -1238,7 +1238,7 @@ bool GLToolbar::generate_icons_texture() const
|
|||
}
|
||||
|
||||
std::vector<std::pair<int, bool>> states;
|
||||
if (m_name == "Top")
|
||||
if (m_type == Normal)
|
||||
{
|
||||
states.push_back({ 1, false }); // Normal
|
||||
states.push_back({ 0, false }); // Pressed
|
||||
|
@ -1247,7 +1247,7 @@ bool GLToolbar::generate_icons_texture() const
|
|||
states.push_back({ 0, false }); // HoverPressed
|
||||
states.push_back({ 2, false }); // HoverDisabled
|
||||
}
|
||||
else if (m_name == "View")
|
||||
else
|
||||
{
|
||||
states.push_back({ 1, false }); // Normal
|
||||
states.push_back({ 1, true }); // Pressed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue