Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
ingame
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav
ingame
Commits
3d2434b3
Unverified
Commit
3d2434b3
authored
Jun 29, 2024
by
Yankovskiy Georgiy
Committed by
GitHub
Jun 29, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12 from Exc404/main
Размытие на фоне ненайденных карточек + RB LB fix
parents
557445f9
dc1d1add
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
6 deletions
+30
-6
Tabs.qml
qml/components/Tabs.qml
+3
-3
Game.qml
qml/delegates/Game.qml
+27
-3
No files found.
qml/components/Tabs.qml
View file @
3d2434b3
...
...
@@ -57,7 +57,7 @@ Rectangle {
id
:
iconLB
source
:
"../icons/XboxController/left-bumper.svg"
fillMode
:
Image
.
Tile
sourceSize.
width
:
tabButtons
.
width
/
100
*
15
sourceSize.
height
:
buttonGames
.
height
*
0.75
// / 10
//sourceSize.height:
//Layout.alignment: Qt.AlignLeft;
anchors.leftMargin
:
window
.
width
/
100
*
6
...
...
@@ -195,8 +195,8 @@ Rectangle {
source
:
"../icons/XboxController/right-bumper.svg"
fillMode
:
Image
.
Tile
//sourceSize.width: text.font.pixelSize * 2
//sourceSize.height: tabButtons.width
/ 10
sourceSize.width
:
tabButtons
.
width
/
100
*
1
5
sourceSize.height
:
buttonGames
.
height
*
0.75
//
/ 10
//sourceSize.width: tabs.width / 100 *
5
//Layout.alignment: Qt.AlignRight;
anchors.verticalCenter
:
tabButtons
.
verticalCenter
anchors.rightMargin
:
window
.
width
/
100
*
6
...
...
qml/delegates/Game.qml
View file @
3d2434b3
import
QtQuick
import
"../constants/scene.js"
as
SceneConstants
//import "../components/" as C
import
QtQuick
.
Controls
as
C
// Подключить для работы с типом объекта LinearGradient
import
Qt5Compat
.
GraphicalEffects
C.Button
{
property
string
gameTitle
:
"Generic title"
property
string
gameIcon
:
""
...
...
@@ -147,6 +145,31 @@ C.Button {
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
{
...
...
@@ -159,6 +182,7 @@ C.Button {
fillMode
:
Image
.
PreserveAspectFit
// Градиент + название игры
Rectangle
{
id
:
bgNameGrad
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment