朱子楚\zhuzi 2023-05-17 22:43:08 +08:00
commit 3232ae9a7c
3 changed files with 7 additions and 4 deletions

View File

@ -2,10 +2,12 @@
import QtQuick.Window import QtQuick.Window
import QtQuick.Controls import QtQuick.Controls
import QtQuick.Layouts import QtQuick.Layouts
import QtMultimedia
import FluentUI import FluentUI
Window { Window {
id:app id:app
MediaPlayer{}
Component.onCompleted: { Component.onCompleted: {
FluApp.init(app) FluApp.init(app)
FluTheme.darkMode = FluDarkMode.System FluTheme.darkMode = FluDarkMode.System

View File

@ -55,7 +55,6 @@ Rectangle{
} }
RowLayout{ RowLayout{
anchors.right: parent.right anchors.right: parent.right
visible: !isMac
height: root.height height: root.height
spacing: 0 spacing: 0
RowLayout{ RowLayout{
@ -87,6 +86,7 @@ Rectangle{
iconSize: 11 iconSize: 11
text:minimizeText text:minimizeText
radius: 0 radius: 0
visible: !isMac
iconColor: root.textColor iconColor: root.textColor
color: hovered ? minimizeHoverColor : minimizeNormalColor color: hovered ? minimizeHoverColor : minimizeNormalColor
onClicked: { onClicked: {
@ -100,7 +100,7 @@ Rectangle{
iconSource : d.isRestore ? FluentIcons.ChromeRestore : FluentIcons.ChromeMaximize iconSource : d.isRestore ? FluentIcons.ChromeRestore : FluentIcons.ChromeMaximize
color: hovered ? maximizeHoverColor : maximizeNormalColor color: hovered ? maximizeHoverColor : maximizeNormalColor
Layout.alignment: Qt.AlignVCenter Layout.alignment: Qt.AlignVCenter
visible: d.resizable visible: d.resizable && !isMac
radius: 0 radius: 0
iconColor: root.textColor iconColor: root.textColor
text:d.isRestore?restoreText:maximizeText text:d.isRestore?restoreText:maximizeText
@ -119,6 +119,7 @@ Rectangle{
text:closeText text:closeText
width: 40 width: 40
height: 30 height: 30
visible: !isMac
radius: 0 radius: 0
iconSize: 10 iconSize: 10
iconColor: hovered ? Qt.rgba(1,1,1,1) : root.textColor iconColor: hovered ? Qt.rgba(1,1,1,1) : root.textColor

View File

@ -27,9 +27,9 @@ Rectangle {
audioOutput: AudioOutput{ audioOutput: AudioOutput{
id:audio_output id:audio_output
} }
onErrorChanged: onErrorStringChanged:
(error)=> { (error)=> {
console.debug(error) console.debug(errorString)
} }
onPositionChanged: { onPositionChanged: {
if(autoSeek){ if(autoSeek){