import QtQuick 2.15
import QtQuick.Window 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import DelegateUI 1.0
import "../MyGlobals" 1.0
Item {
    anchors.fill: parent
    anchors.leftMargin: 1
    ShaderEffect {
        id:about_shader
        anchors.fill: parent
        vertexShader: "qrc:/shaders/effect2.vert"
        fragmentShader: "qrc:/shaders/effect2.frag"
        opacity: 0.3
        property vector3d iResolution: Qt.vector3d(width, height, 0)
        property real iTime: 0
        Timer {
            id: timer
            running: true
            repeat: true
            interval: 15
            onTriggered: parent.iTime += 0.01;
        }
    }
    ColumnLayout {
        id:cl
        anchors.fill: parent
        // spacing: 20
        // padding: 20
        Rectangle {
            visible: true
            Layout.fillWidth: true
            Layout.fillHeight: true
            color: "transparent"
            border.color: DelTheme.isDark ? DelTheme.DelCollapse.colorBorderDark : DelTheme.DelCollapse.colorBorder
            border.width: 1
            radius: 8
            Column{
                spacing: 10
                topPadding: 10
                leftPadding: 10
                Text{
                    font.pixelSize: 32
                    font.family: DelTheme.Primary.fontPrimaryFamily
                    color:DelTheme.Primary.colorTextBase
                    text:"DP-S客户端插件管理工具"
                }
                Text{
                    font.pixelSize: 20
                    font.family: DelTheme.Primary.fontPrimaryFamily
                    color:DelTheme.Primary.colorTextBase
                    text:"作者: 倾泪寒"
                }
                Text{
                    font.pixelSize: 20
                    font.family: DelTheme.Primary.fontPrimaryFamily
                    color:DelTheme.Primary.colorTextBase
                    text:"联系QQ:947330670"
                }
                Text{
                    font.pixelSize: 20
                    font.family: DelTheme.Primary.fontPrimaryFamily
                    color:DelTheme.Primary.colorTextBase
                    text:"开发文档:"
                }
                Text {
                    font.pixelSize: 20
                    font.family: DelTheme.Primary.fontPrimaryFamily
                    color:DelTheme.Primary.colorTextBase
                    text: "https://dps-doc.senzo.online"
                    textFormat: Text.RichText
                    onLinkActivated: (url) => Qt.openUrlExternally(url)
                    MouseArea {
                        anchors.fill: parent
                        cursorShape: Qt.PointingHandCursor
                        acceptedButtons: Qt.NoButton // 传递点击事件给父控件
                    }
                }
                Text{
                    font.pixelSize: 20
                    font.family: DelTheme.Primary.fontPrimaryFamily
                    color:DelTheme.Primary.colorTextBase
                    text:"QQ交流群:"
                }
                Text {
                    font.pixelSize: 20
                    font.family: DelTheme.Primary.fontPrimaryFamily
                    color:DelTheme.Primary.colorTextBase
                    text: "点击链接加入群聊【DP-S插件】"
                    textFormat: Text.RichText
                    onLinkActivated: (url) => Qt.openUrlExternally(url)
                    MouseArea {
                        anchors.fill: parent
                        cursorShape: Qt.PointingHandCursor
                        acceptedButtons: Qt.NoButton // 传递点击事件给父控件
                    }
                }
                Row{
                    Text{
                        text:"捐赠:"
                        font.pixelSize: 20
                        font.family: DelTheme.Primary.fontPrimaryFamily
                        color:DelTheme.Primary.colorTextBase
                    }
                    Image{
                        width: 781*0.67
                        height: 646*0.67
                        source:"qrc:/image/code.png"
                    }
                }
            }
        }
    }
}