mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-16 14:42:44 +00:00
Minor improvement in ChangePixelFormat dialog
Moved the progress bar in other at the left of the OK button and the progress bar appears only if we have to report a progress value > 0
This commit is contained in:
parent
9746a30564
commit
dba3f3cdfb
@ -7,7 +7,6 @@
|
|||||||
<view id="color_mode_view" expansive="true">
|
<view id="color_mode_view" expansive="true">
|
||||||
<listbox id="color_mode" />
|
<listbox id="color_mode" />
|
||||||
</view>
|
</view>
|
||||||
<slider min="0" max="100" id="progress" minwidth="100" />
|
|
||||||
<hbox id="dithering_placeholder" />
|
<hbox id="dithering_placeholder" />
|
||||||
<hbox id="amount">
|
<hbox id="amount">
|
||||||
<label text="@.amount" />
|
<label text="@.amount" />
|
||||||
@ -17,6 +16,7 @@
|
|||||||
<check text="@.flatten" id="flatten" />
|
<check text="@.flatten" id="flatten" />
|
||||||
<separator horizontal="true" />
|
<separator horizontal="true" />
|
||||||
<hbox>
|
<hbox>
|
||||||
|
<slider min="0" max="100" id="progress" minwidth="100" />
|
||||||
<boxfiller />
|
<boxfiller />
|
||||||
<hbox homogeneous="true">
|
<hbox homogeneous="true">
|
||||||
<button text="@general.ok" closewindow="true" id="ok" magnet="true" minwidth="60" />
|
<button text="@general.ok" closewindow="true" id="ok" magnet="true" minwidth="60" />
|
||||||
|
@ -326,7 +326,7 @@ private:
|
|||||||
|
|
||||||
m_editor->invalidate();
|
m_editor->invalidate();
|
||||||
progress()->setValue(0);
|
progress()->setValue(0);
|
||||||
progress()->setVisible(true);
|
progress()->setVisible(false);
|
||||||
layout();
|
layout();
|
||||||
|
|
||||||
m_bgThread.reset(
|
m_bgThread.reset(
|
||||||
@ -361,8 +361,16 @@ private:
|
|||||||
progress()->setVisible(false);
|
progress()->setVisible(false);
|
||||||
layout();
|
layout();
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
progress()->setValue(100 * m_bgThread->progress());
|
int v = 100 * m_bgThread->progress();
|
||||||
|
if (v > 0) {
|
||||||
|
progress()->setValue(v);
|
||||||
|
if (!progress()->isVisible()) {
|
||||||
|
progress()->setVisible(true);
|
||||||
|
layout();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
m_editor->invalidate();
|
m_editor->invalidate();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user