Unverified Commit 3d2434b3 authored by Yankovskiy Georgiy's avatar Yankovskiy Georgiy Committed by GitHub

Merge pull request #12 from Exc404/main

Размытие на фоне ненайденных карточек + RB LB fix
parents 557445f9 dc1d1add
...@@ -57,7 +57,7 @@ Rectangle { ...@@ -57,7 +57,7 @@ Rectangle {
id: iconLB id: iconLB
source: "../icons/XboxController/left-bumper.svg" source: "../icons/XboxController/left-bumper.svg"
fillMode: Image.Tile fillMode: Image.Tile
sourceSize.width: tabButtons.width / 100 * 15 sourceSize.height: buttonGames.height * 0.75// / 10
//sourceSize.height: //sourceSize.height:
//Layout.alignment: Qt.AlignLeft; //Layout.alignment: Qt.AlignLeft;
anchors.leftMargin: window.width / 100 * 6 anchors.leftMargin: window.width / 100 * 6
...@@ -195,8 +195,8 @@ Rectangle { ...@@ -195,8 +195,8 @@ Rectangle {
source: "../icons/XboxController/right-bumper.svg" source: "../icons/XboxController/right-bumper.svg"
fillMode: Image.Tile fillMode: Image.Tile
//sourceSize.width: text.font.pixelSize * 2 //sourceSize.width: text.font.pixelSize * 2
//sourceSize.height: tabButtons.width / 10 sourceSize.height: buttonGames.height * 0.75// / 10
sourceSize.width: tabButtons.width / 100 * 15 //sourceSize.width: tabs.width / 100 * 5
//Layout.alignment: Qt.AlignRight; //Layout.alignment: Qt.AlignRight;
anchors.verticalCenter: tabButtons.verticalCenter anchors.verticalCenter: tabButtons.verticalCenter
anchors.rightMargin: window.width / 100 * 6 anchors.rightMargin: window.width / 100 * 6
......
import QtQuick import QtQuick
import "../constants/scene.js" as SceneConstants import "../constants/scene.js" as SceneConstants
//import "../components/" as C //import "../components/" as C
import QtQuick.Controls as C import QtQuick.Controls as C
// Подключить для работы с типом объекта LinearGradient // Подключить для работы с типом объекта LinearGradient
import Qt5Compat.GraphicalEffects
C.Button { C.Button {
property string gameTitle: "Generic title" property string gameTitle: "Generic title"
property string gameIcon: "" property string gameIcon: ""
...@@ -147,6 +145,31 @@ C.Button { ...@@ -147,6 +145,31 @@ C.Button {
duration: 1000; duration: 1000;
} }
} }
Image {
id: blurImage
source: game.gameIcon
//anchors.fill:game
width: game.width
height: game.height
//sourceSize: Qt.size(parent.width, parent.height)
fillMode: Image.PreserveAspectCrop
smooth: true
visible: false
clip: true
Rectangle {
id: b1
opacity: 0.3
anchors.fill: parent
color: "#000000"
}
}
FastBlur {
anchors.fill: blurImage
source: blurImage
radius: 32
}
// Картинка на карточке // Картинка на карточке
Image { Image {
...@@ -159,6 +182,7 @@ C.Button { ...@@ -159,6 +182,7 @@ C.Button {
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
// Градиент + название игры // Градиент + название игры
Rectangle { Rectangle {
id: bgNameGrad id: bgNameGrad
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment