Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
add dialog + fix ytdlphelper
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinechxn committed Dec 11, 2024
1 parent 012724c commit aeaf73b
Show file tree
Hide file tree
Showing 24 changed files with 763 additions and 269 deletions.
10 changes: 10 additions & 0 deletions mdu.pro
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,12 @@ SOURCES += \
src/core/stemextractor/uvrhelper.cpp \
src/core/ytdlphelper.cpp \
src/gui/aboutqt.cpp \
src/gui/clearconfirmdialog.cpp \
src/gui/confirmdialog.cpp \
src/gui/customdialog.cpp \
src/gui/dialogmanager.cpp \
src/gui/encoderoption.cpp \
src/gui/errordialog.cpp \
src/gui/windowcontroller.cpp \
src/main.cpp \
src/gui/mainwindow.cpp \
Expand All @@ -97,7 +102,12 @@ HEADERS += \
src/core/stemextractor/uvrhelper.hpp \
src/core/ytdlphelper.hpp \
src/gui/aboutqt.hpp \
src/gui/clearconfirmdialog.hpp \
src/gui/confirmdialog.hpp \
src/gui/customdialog.hpp \
src/gui/dialogmanager.hpp \
src/gui/encoderoption.h \
src/gui/errordialog.hpp \
src/gui/mainwindow.hpp \
src/gui/framelesshelper.hpp \
src/gui/windowcontroller.hpp \
Expand Down
21 changes: 12 additions & 9 deletions resources/interface/components/DownloadModal.qml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ Dialog {
width: 600
height: 700

signal accepted(var downloadConfig) // Modify the signal to include the config
signal rejected()

enter: Transition {
NumberAnimation {
property: "opacity"
Expand Down Expand Up @@ -51,13 +54,13 @@ Dialog {
border.color: "#333333"
border.width: 1

layer.enabled: true
layer.effect: DropShadow {
transparentBorder: true
radius: 8.0
samples: 17
color: "#80000000"
}
// layer.enabled: true
// layer.effect: DropShadow {
// transparentBorder: true
// radius: 8.0
// samples: 17
// color: "#80000000"
// }
}

header: Rectangle {
Expand Down Expand Up @@ -621,8 +624,8 @@ Dialog {
bitrate: bitrateCombo.currentText
} : null
}
console.log(JSON.stringify(downloadConfig, null, 2))
root.accept()
root.accepted(downloadConfig) // Pass the config with the signal
root.close()
}
}
}
Expand Down
Loading

0 comments on commit aeaf73b

Please sign in to comment.