From bd422f96cf9331cca3ddc24c4bab20446098f176 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A?= Date: Wed, 17 May 2023 22:19:46 +0800 Subject: [PATCH 1/2] update --- src/imports/FluentUI/Controls/FluAppBar.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/imports/FluentUI/Controls/FluAppBar.qml b/src/imports/FluentUI/Controls/FluAppBar.qml index b0e50e3f..283bca44 100644 --- a/src/imports/FluentUI/Controls/FluAppBar.qml +++ b/src/imports/FluentUI/Controls/FluAppBar.qml @@ -55,7 +55,6 @@ Rectangle{ } RowLayout{ anchors.right: parent.right - visible: !isMac height: root.height spacing: 0 RowLayout{ @@ -87,6 +86,7 @@ Rectangle{ iconSize: 11 text:minimizeText radius: 0 + visible: !isMac iconColor: root.textColor color: hovered ? minimizeHoverColor : minimizeNormalColor onClicked: { @@ -100,7 +100,7 @@ Rectangle{ iconSource : d.isRestore ? FluentIcons.ChromeRestore : FluentIcons.ChromeMaximize color: hovered ? maximizeHoverColor : maximizeNormalColor Layout.alignment: Qt.AlignVCenter - visible: d.resizable + visible: d.resizable && !isMac radius: 0 iconColor: root.textColor text:d.isRestore?restoreText:maximizeText @@ -119,6 +119,7 @@ Rectangle{ text:closeText width: 40 height: 30 + visible: !isMac radius: 0 iconSize: 10 iconColor: hovered ? Qt.rgba(1,1,1,1) : root.textColor From 8b531e4637190fac13d1ca6b93083d6aaa21b54c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A?= Date: Wed, 17 May 2023 22:26:16 +0800 Subject: [PATCH 2/2] update --- example/qml/App.qml | 2 ++ src/imports/FluentUI/Controls/FluMediaPlayer.qml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/example/qml/App.qml b/example/qml/App.qml index f1781b6c..1b79d23b 100644 --- a/example/qml/App.qml +++ b/example/qml/App.qml @@ -2,10 +2,12 @@ import QtQuick.Window import QtQuick.Controls import QtQuick.Layouts +import QtMultimedia import FluentUI Window { id:app + MediaPlayer{} Component.onCompleted: { FluApp.init(app) FluTheme.darkMode = FluDarkMode.System diff --git a/src/imports/FluentUI/Controls/FluMediaPlayer.qml b/src/imports/FluentUI/Controls/FluMediaPlayer.qml index 077ad581..2362933d 100644 --- a/src/imports/FluentUI/Controls/FluMediaPlayer.qml +++ b/src/imports/FluentUI/Controls/FluMediaPlayer.qml @@ -27,9 +27,9 @@ Rectangle { audioOutput: AudioOutput{ id:audio_output } - onErrorChanged: + onErrorStringChanged: (error)=> { - console.debug(error) + console.debug(errorString) } onPositionChanged: { if(autoSeek){