Remove Material.Icon
This commit is contained in:
@@ -11,7 +11,7 @@ ApplicationWindow {
|
|||||||
visible: true
|
visible: true
|
||||||
visibility: Qt.WindowFullScreen
|
visibility: Qt.WindowFullScreen
|
||||||
|
|
||||||
title: "Image View - " + filename
|
title: i18n("Image View - %1", filename)
|
||||||
|
|
||||||
color: "#BB000000"
|
color: "#BB000000"
|
||||||
|
|
||||||
@@ -41,11 +41,6 @@ ApplicationWindow {
|
|||||||
width: 64
|
width: 64
|
||||||
height: 64
|
height: 64
|
||||||
|
|
||||||
contentItem: MaterialIcon {
|
|
||||||
icon: "\ue5cd"
|
|
||||||
color: "white"
|
|
||||||
}
|
|
||||||
|
|
||||||
onClicked: root.destroy()
|
onClicked: root.destroy()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
import QtQuick 2.12
|
|
||||||
import QtQuick.Controls 2.12
|
|
||||||
import QtQuick.Layouts 1.12
|
|
||||||
|
|
||||||
import Spectral.Setting 0.1
|
|
||||||
import Spectral.Font 0.1
|
|
||||||
|
|
||||||
Text {
|
|
||||||
property alias icon: materialLabel.text
|
|
||||||
|
|
||||||
id: materialLabel
|
|
||||||
|
|
||||||
color: MPalette.foreground
|
|
||||||
font.pixelSize: 24
|
|
||||||
font.family: MaterialFont.name
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
}
|
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
import QtQuick 2.12
|
import QtQuick 2.12
|
||||||
import QtQuick.Controls 2.12
|
import QtQuick.Controls 2.12
|
||||||
import QtQuick.Layouts 1.12
|
import QtQuick.Layouts 1.12
|
||||||
import QtQuick.Controls.Material 2.12
|
|
||||||
import QtGraphicalEffects 1.0
|
import QtGraphicalEffects 1.0
|
||||||
import Qt.labs.platform 1.0 as Platform
|
import Qt.labs.platform 1.0 as Platform
|
||||||
import QtMultimedia 5.12
|
import QtMultimedia 5.12
|
||||||
@@ -13,7 +12,6 @@ import Spectral.Setting 0.1
|
|||||||
import Spectral.Component 2.0
|
import Spectral.Component 2.0
|
||||||
import Spectral.Dialog 2.0
|
import Spectral.Dialog 2.0
|
||||||
import Spectral.Menu.Timeline 2.0
|
import Spectral.Menu.Timeline 2.0
|
||||||
import Spectral.Font 0.1
|
|
||||||
import Spectral.Effect 2.0
|
import Spectral.Effect 2.0
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
@@ -71,9 +69,7 @@ RowLayout {
|
|||||||
|
|
||||||
contentItem: RowLayout {
|
contentItem: RowLayout {
|
||||||
ToolButton {
|
ToolButton {
|
||||||
contentItem: MaterialIcon {
|
icon.name: audio.playbackState == Audio.PlayingState ? "media-playback-pause" : "media-playback-start"
|
||||||
icon: audio.playbackState == Audio.PlayingState ? "\ue034" : "\ue405"
|
|
||||||
}
|
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (audio.playbackState == Audio.PlayingState) {
|
if (audio.playbackState == Audio.PlayingState) {
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ import Spectral.Setting 0.1
|
|||||||
import Spectral.Component 2.0
|
import Spectral.Component 2.0
|
||||||
import Spectral.Dialog 2.0
|
import Spectral.Dialog 2.0
|
||||||
import Spectral.Menu.Timeline 2.0
|
import Spectral.Menu.Timeline 2.0
|
||||||
import Spectral.Font 0.1
|
|
||||||
import Spectral.Effect 2.0
|
import Spectral.Effect 2.0
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
@@ -69,9 +68,7 @@ RowLayout {
|
|||||||
|
|
||||||
contentItem: RowLayout {
|
contentItem: RowLayout {
|
||||||
ToolButton {
|
ToolButton {
|
||||||
contentItem: MaterialIcon {
|
icon.name: progressInfo.completed ? "document-open" : "document-save"
|
||||||
icon: progressInfo.completed ? "\ue5ca" : "\ue2c4"
|
|
||||||
}
|
|
||||||
|
|
||||||
onClicked: progressInfo.completed ? openSavedFile() : saveFileAs()
|
onClicked: progressInfo.completed ? openSavedFile() : saveFileAs()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import QtQuick 2.12
|
import QtQuick 2.12
|
||||||
import QtQuick.Controls 2.12
|
import QtQuick.Controls 2.12
|
||||||
import QtQuick.Layouts 1.12
|
import QtQuick.Layouts 1.12
|
||||||
import QtQuick.Controls.Material 2.12
|
|
||||||
import QtGraphicalEffects 1.0
|
import QtGraphicalEffects 1.0
|
||||||
import Qt.labs.platform 1.0 as Platform
|
import Qt.labs.platform 1.0 as Platform
|
||||||
|
|
||||||
@@ -12,7 +11,6 @@ import Spectral.Component 2.0
|
|||||||
import Spectral.Dialog 2.0
|
import Spectral.Dialog 2.0
|
||||||
import Spectral.Menu.Timeline 2.0
|
import Spectral.Menu.Timeline 2.0
|
||||||
import Spectral.Effect 2.0
|
import Spectral.Effect 2.0
|
||||||
import Spectral.Font 0.1
|
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
readonly property bool isAnimated: contentType === "image/gif"
|
readonly property bool isAnimated: contentType === "image/gif"
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ RowLayout {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
text: replyVisible ? reply.author.displayName : ""
|
text: replyVisible ? reply.author.displayName : ""
|
||||||
color: replay.author.color
|
color: reply.author.color
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -131,12 +131,6 @@ Dialog {
|
|||||||
|
|
||||||
visible: inRoom
|
visible: inRoom
|
||||||
|
|
||||||
contentItem: MaterialIcon {
|
|
||||||
icon: "\ue89e"
|
|
||||||
color: MPalette.lighter
|
|
||||||
font.pixelSize: 20
|
|
||||||
}
|
|
||||||
|
|
||||||
background: RippleEffect {
|
background: RippleEffect {
|
||||||
circular: true
|
circular: true
|
||||||
}
|
}
|
||||||
@@ -148,12 +142,6 @@ Dialog {
|
|||||||
|
|
||||||
visible: !inRoom
|
visible: !inRoom
|
||||||
|
|
||||||
contentItem: MaterialIcon {
|
|
||||||
icon: "\ue7fe"
|
|
||||||
color: MPalette.lighter
|
|
||||||
font.pixelSize: 20
|
|
||||||
}
|
|
||||||
|
|
||||||
background: RippleEffect {
|
background: RippleEffect {
|
||||||
circular: true
|
circular: true
|
||||||
|
|
||||||
|
|||||||
@@ -134,13 +134,6 @@ Dialog {
|
|||||||
padding: 8
|
padding: 8
|
||||||
|
|
||||||
contentItem: RowLayout {
|
contentItem: RowLayout {
|
||||||
MaterialIcon {
|
|
||||||
Layout.preferredWidth: 48
|
|
||||||
Layout.preferredHeight: 48
|
|
||||||
|
|
||||||
icon: "\ue8d4"
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
@@ -185,13 +178,6 @@ Dialog {
|
|||||||
padding: 8
|
padding: 8
|
||||||
|
|
||||||
contentItem: RowLayout {
|
contentItem: RowLayout {
|
||||||
MaterialIcon {
|
|
||||||
Layout.preferredWidth: 48
|
|
||||||
Layout.preferredHeight: 48
|
|
||||||
|
|
||||||
icon: "\ue8d4"
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
@@ -289,19 +275,9 @@ Dialog {
|
|||||||
color: MPalette.lighter
|
color: MPalette.lighter
|
||||||
}
|
}
|
||||||
|
|
||||||
MaterialIcon {
|
ToolButton {
|
||||||
icon: "\ue5cd"
|
icon.name: ""
|
||||||
|
onClicked: room.removeLocalAlias(modelData)
|
||||||
color: MPalette.lighter
|
|
||||||
font.pixelSize: 12
|
|
||||||
|
|
||||||
RippleEffect {
|
|
||||||
anchors.fill: parent
|
|
||||||
|
|
||||||
circular: true
|
|
||||||
|
|
||||||
onClicked: room.removeLocalAlias(modelData)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,15 +81,6 @@ Dialog {
|
|||||||
|
|
||||||
spacing: 8
|
spacing: 8
|
||||||
|
|
||||||
MaterialIcon {
|
|
||||||
Layout.preferredWidth: 32
|
|
||||||
Layout.preferredHeight: 32
|
|
||||||
Layout.alignment: Qt.AlignTop
|
|
||||||
|
|
||||||
icon: "\ue88f"
|
|
||||||
color: MPalette.lighter
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
@@ -120,15 +111,6 @@ Dialog {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
contentItem: RowLayout {
|
contentItem: RowLayout {
|
||||||
MaterialIcon {
|
|
||||||
Layout.preferredWidth: 32
|
|
||||||
Layout.preferredHeight: 32
|
|
||||||
Layout.alignment: Qt.AlignTop
|
|
||||||
|
|
||||||
icon: room.connection.isIgnored(user) ? "\ue7f5" : "\ue7f6"
|
|
||||||
color: MPalette.lighter
|
|
||||||
}
|
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
@@ -151,15 +133,6 @@ Dialog {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
contentItem: RowLayout {
|
contentItem: RowLayout {
|
||||||
MaterialIcon {
|
|
||||||
Layout.preferredWidth: 32
|
|
||||||
Layout.preferredHeight: 32
|
|
||||||
Layout.alignment: Qt.AlignTop
|
|
||||||
|
|
||||||
icon: "\ue5d9"
|
|
||||||
color: MPalette.lighter
|
|
||||||
}
|
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
pragma Singleton
|
|
||||||
import QtQuick 2.12
|
|
||||||
|
|
||||||
FontLoader {
|
|
||||||
source: "qrc:/assets/font/material.ttf"
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
module Spectral.Font
|
|
||||||
singleton MaterialFont 0.1 MaterialFont.qml
|
|
||||||
@@ -225,6 +225,7 @@ Kirigami.ScrollablePage {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
innerObject: ImageDelegate {
|
innerObject: ImageDelegate {
|
||||||
|
Layout.maximumWidth: parent.width
|
||||||
Layout.preferredWidth: Math.min(320, info.w)
|
Layout.preferredWidth: Math.min(320, info.w)
|
||||||
Layout.preferredHeight: Math.min(320, info.h)
|
Layout.preferredHeight: Math.min(320, info.h)
|
||||||
}
|
}
|
||||||
|
|||||||
3
res.qrc
3
res.qrc
@@ -13,14 +13,11 @@
|
|||||||
<file>imports/Spectral/Component/Timeline/qmldir</file>
|
<file>imports/Spectral/Component/Timeline/qmldir</file>
|
||||||
<file>imports/Spectral/Component/Timeline/StateDelegate.qml</file>
|
<file>imports/Spectral/Component/Timeline/StateDelegate.qml</file>
|
||||||
<file>imports/Spectral/Component/AutoMouseArea.qml</file>
|
<file>imports/Spectral/Component/AutoMouseArea.qml</file>
|
||||||
<file>imports/Spectral/Component/MaterialIcon.qml</file>
|
|
||||||
<file>imports/Spectral/Component/qmldir</file>
|
<file>imports/Spectral/Component/qmldir</file>
|
||||||
<file>imports/Spectral/Effect/ElevationEffect.qml</file>
|
<file>imports/Spectral/Effect/ElevationEffect.qml</file>
|
||||||
<file>imports/Spectral/Effect/qmldir</file>
|
<file>imports/Spectral/Effect/qmldir</file>
|
||||||
<file>assets/img/icon.png</file>
|
<file>assets/img/icon.png</file>
|
||||||
<file>imports/Spectral/Setting/Setting.qml</file>
|
<file>imports/Spectral/Setting/Setting.qml</file>
|
||||||
<file>imports/Spectral/Font/MaterialFont.qml</file>
|
|
||||||
<file>imports/Spectral/Font/qmldir</file>
|
|
||||||
<file>imports/Spectral/Setting/qmldir</file>
|
<file>imports/Spectral/Setting/qmldir</file>
|
||||||
<file>imports/Spectral/Panel/qmldir</file>
|
<file>imports/Spectral/Panel/qmldir</file>
|
||||||
<file>imports/Spectral/Panel/RoomDrawer.qml</file>
|
<file>imports/Spectral/Panel/RoomDrawer.qml</file>
|
||||||
|
|||||||
Reference in New Issue
Block a user