diff --git a/0003-sometimes-cannot-loop-playback.patch b/0003-sometimes-cannot-loop-playback.patch new file mode 100644 index 0000000000000000000000000000000000000000..3ba549df450b0833568898d49819c3f8a844a7a2 --- /dev/null +++ b/0003-sometimes-cannot-loop-playback.patch @@ -0,0 +1,14 @@ +diff --git a/nfs-mplayer-1.0.0/src/playlist.cpp b/nfs-mplayer-1.0.0/src/playlist.cpp +index 30a6a99..3015191 100755 +--- a/nfs-mplayer-1.0.0/src/playlist.cpp ++++ b/nfs-mplayer-1.0.0/src/playlist.cpp +@@ -1611,8 +1611,8 @@ void Playlist::addFiles(QStringList files, bool play_now, AutoGetInfo auto_get_i + if (new_current_item != -1) setCurrentItem(new_current_item); + + if (count() == old_count+1) { +- setCurrentItem(old_count); + if (play_now) { ++ setCurrentItem(old_count); + playItem(old_count); + } + } else if (count() == old_count) { diff --git a/0004-transparent-bottom-control-bar-after-maximizing-the-window.patch b/0004-transparent-bottom-control-bar-after-maximizing-the-window.patch new file mode 100644 index 0000000000000000000000000000000000000000..4cc4fb3ea2cec93441614a93e0c2bdaa684dd832 --- /dev/null +++ b/0004-transparent-bottom-control-bar-after-maximizing-the-window.patch @@ -0,0 +1,22 @@ +diff --git a/nfs-mplayer-1.0.0/src/defaultgui.cpp b/nfs-mplayer-1.0.0/src/defaultgui.cpp +index 1f60a11..2bf8371 100755 +--- a/nfs-mplayer-1.0.0/src/defaultgui.cpp ++++ b/nfs-mplayer-1.0.0/src/defaultgui.cpp +@@ -1573,12 +1573,16 @@ void DefaultGui::createFloatingControl() { + floating_control = new AutohideWidget(m_controlBar); + floating_control->setAutoHide(true); + floating_control->setFixedHeight(50); ++ floating_control->setStyleSheet("" ++ "border:none;" ++ "border-radius: 6px;" ++ "background: transparent;"); + + // 浮动窗口控制栏 + EditableToolbar * iw = new EditableToolbar(floating_control); + iw->setObjectName("floating_control"); + iw->setFixedHeight(50); +- iw->setStyleSheet("QToolBar {background-color: #1a1a1a;}"); ++ iw->setStyleSheet("QToolBar {background-color: rgba(26, 26, 26, 0.9);}"); + connect(iw, SIGNAL(iconSizeChanged(const QSize &)), this, SLOT(adjustFloatingControlSize())); + + #if USE_CONFIGURABLE_TOOLBARS diff --git a/0005-set-stylesheet-to-affect-only-itself.patch b/0005-set-stylesheet-to-affect-only-itself.patch new file mode 100644 index 0000000000000000000000000000000000000000..3362c6c54da82af2c098ea3ef978df09bc6bb930 --- /dev/null +++ b/0005-set-stylesheet-to-affect-only-itself.patch @@ -0,0 +1,29 @@ +diff --git a/nfs-mplayer-1.0.0/src/autohidewidget.cpp b/nfs-mplayer-1.0.0/src/autohidewidget.cpp +index a0bd57c..91836d8 100755 +--- a/nfs-mplayer-1.0.0/src/autohidewidget.cpp ++++ b/nfs-mplayer-1.0.0/src/autohidewidget.cpp +@@ -218,7 +218,6 @@ bool AutohideWidget::eventFilter(QObject * obj, QEvent * event) { + else + #endif + if (event->type() == QEvent::MouseMove) { +- //qDebug() << "AutohideWidget::eventFilter: mouse move" << obj; + if (!isVisible()) { + if (activation_area == Anywhere) { + show(); +diff --git a/nfs-mplayer-1.0.0/src/defaultgui.cpp b/nfs-mplayer-1.0.0/src/defaultgui.cpp +index 2bf8371..bf8d29a 100755 +--- a/nfs-mplayer-1.0.0/src/defaultgui.cpp ++++ b/nfs-mplayer-1.0.0/src/defaultgui.cpp +@@ -1573,10 +1573,10 @@ void DefaultGui::createFloatingControl() { + floating_control = new AutohideWidget(m_controlBar); + floating_control->setAutoHide(true); + floating_control->setFixedHeight(50); +- floating_control->setStyleSheet("" ++ floating_control->setStyleSheet("AutohideWidget {" + "border:none;" + "border-radius: 6px;" +- "background: transparent;"); ++ "background: transparent;}"); + + // 浮动窗口控制栏 + EditableToolbar * iw = new EditableToolbar(floating_control); diff --git a/0006-fix-file-operation-will-pause-video-play.patch b/0006-fix-file-operation-will-pause-video-play.patch new file mode 100644 index 0000000000000000000000000000000000000000..4cac1a44f93393f1518642d7a5bd2ff1f29a1d24 --- /dev/null +++ b/0006-fix-file-operation-will-pause-video-play.patch @@ -0,0 +1,15 @@ +diff --git a/nfs-mplayer-1.0.0/src/defaultgui.cpp b/nfs-mplayer-1.0.0/src/defaultgui.cpp +index bf8d29a..00e8d7c 100755 +--- a/nfs-mplayer-1.0.0/src/defaultgui.cpp ++++ b/nfs-mplayer-1.0.0/src/defaultgui.cpp +@@ -317,6 +317,10 @@ void DefaultGui::ActiveChanged(bool flag) + void DefaultGui::PropertiesChanged(QString service, QVariantMap map, QStringList list) + { + qDebug("DefaultGui::PropertiesChanged"); ++ ++ QString key = "SessionIsActive"; ++ if ( ! map.keys().contains(key)) ++ return; + + if(!map["SessionIsActive"].toBool()){ + pausePlay();