mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
optimize dock startup animation
Change-Id: I406726b3643c9c09f12aeba4ac906c93f439a921
This commit is contained in:
parent
40c05ef287
commit
f04ff15e08
Notes:
Deepin Code Review
2017-12-13 17:13:48 +08:00
Verified+1: Anonymous Coward #1000004 Code-Review+2: 石博文 <sbw@sbw.so> Submitted-by: 石博文 <sbw@sbw.so> Submitted-at: Wed, 13 Dec 2017 17:13:48 +0800 Reviewed-on: https://cr.deepin.io/29378 Project: dde/dde-dock Branch: refs/heads/master
@ -107,13 +107,14 @@ QRect MainWindow::panelGeometry()
|
||||
|
||||
void MainWindow::launch()
|
||||
{
|
||||
setVisible(true);
|
||||
m_updatePanelVisible = false;
|
||||
narrow(m_settings->position());
|
||||
m_mainPanel->setVisible(false);
|
||||
resetPanelEnvironment(false);
|
||||
setVisible(false);
|
||||
|
||||
QTimer::singleShot(400, this, [&] {
|
||||
m_launched = true;
|
||||
m_mainPanel->setVisible(true);
|
||||
resetPanelEnvironment(false);
|
||||
updateGeometry();
|
||||
expand();
|
||||
@ -257,7 +258,7 @@ void MainWindow::compositeChanged()
|
||||
{
|
||||
// qDebug() << Q_FUNC_INFO;
|
||||
|
||||
const int duration = m_wmHelper->hasComposite() ? 200 : 0;
|
||||
const int duration = m_wmHelper->hasComposite() ? 300 : 0;
|
||||
|
||||
m_sizeChangeAni->setDuration(duration);
|
||||
m_posChangeAni->setDuration(duration);
|
||||
|
Loading…
x
Reference in New Issue
Block a user