From 6383a53fbe4f91356b67863971b1d6b6caf3fedb Mon Sep 17 00:00:00 2001 From: flykhan Date: Thu, 31 Aug 2023 15:34:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8D=A2=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mainwindow.cpp | 10 +++++----- mainwindow.ui | 18 +++++++++--------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 66c9046..634599e 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -54,7 +54,7 @@ void MainWindow::initMainWindow() // 设置滑块属性 ui->time_slider->setStyleSheet("QSlider::groove:horizontal { background-color: white; }" - "QSlider::handle:horizontal { background-color: blue; width: 20px;}"); + "QSlider::handle:horizontal { background-color: yellow; width: 20px;}"); ui->volume_slider->setStyleSheet("QSlider::groove:horizontal { background-color: gray; }" "QSlider::handle:horizontal { background-color: yellow; width: 20px;}"); ui->volume_slider->setMinimum(0); // 最小音量 0 @@ -274,13 +274,13 @@ void MainWindow::on_play_btn_clicked() { if(play_btn_flag == 0) { - ui->play_btn->setIcon(QIcon(":/icon/button_play")); + ui->play_btn->setIcon(QIcon(":/icon2/pause")); kill(mplayer_pid,SIGCONT); play_btn_flag = 1; } else if (play_btn_flag == 1) { - ui->play_btn->setIcon(QIcon(":/icon/button")); + ui->play_btn->setIcon(QIcon(":/icon2/play")); kill(mplayer_pid,SIGSTOP); play_btn_flag = 0; } @@ -332,14 +332,14 @@ void MainWindow::on_mute_btn_clicked() { if(mute_flag == 0) // 没静音则按下后设置静音 { - ui->mute_btn->setIcon(QIcon(":/icon/mute1")); + ui->mute_btn->setIcon(QIcon(":/icon2/sound-on")); // volume_mute_switch(1); // mute_flag = 1; volume_mute_switch(++mute_flag); } else if (mute_flag == 1) // 已静音则按下后取消静音 { - ui->mute_btn->setIcon(QIcon(":/icon/mute2")); + ui->mute_btn->setIcon(QIcon(":/icon2/sound-off")); volume_mute_switch(--mute_flag); } } diff --git a/mainwindow.ui b/mainwindow.ui index 9ca7ecb..8c300fc 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -138,7 +138,7 @@ color: rgb(255, 255, 0); - :/icon/back:/icon/back + :/icon2/play-previous:/icon2/play-previous @@ -155,7 +155,7 @@ color: rgb(255, 255, 0); - :/icon/last:/icon/last + :/icon2/rewind-back:/icon2/rewind-back @@ -172,7 +172,7 @@ color: rgb(255, 255, 0); - :/icon/button:/icon/button + :/icon2/play:/icon2/play @@ -189,7 +189,7 @@ color: rgb(255, 255, 0); - :/icon/next:/icon/next + :/icon2/rewind-forward:/icon2/rewind-forward @@ -206,7 +206,7 @@ color: rgb(255, 255, 0); - :/icon/front:/icon/front + :/icon2/play-next:/icon2/play-next @@ -245,7 +245,7 @@ color: rgb(255, 255, 0); - :/icon/mute2:/icon/mute2 + :/icon2/sound-off:/icon2/sound-off @@ -262,7 +262,7 @@ color: rgb(255, 255, 0); - :/icon/volume0:/icon/volume0 + :/icon2/volume-down:/icon2/volume-down @@ -279,7 +279,7 @@ color: rgb(255, 255, 0); - :/icon/volume1:/icon/volume1 + :/icon2/volume-up:/icon2/volume-up @@ -334,7 +334,7 @@ color: rgb(255, 255, 0); 0 0 1055 - 25 + 26