Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homepage Quick Adjustments #2520

Merged
merged 2 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified meshroom/ui/img/MIKROS_TG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified meshroom/ui/img/MILL_TG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified meshroom/ui/img/MPC_TG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified meshroom/ui/img/TechnicolorGames_TG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified meshroom/ui/img/technicolor-group_rgb_primary_col-rev.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 15 additions & 46 deletions meshroom/ui/qml/Homepage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ Page {
property var ratio: sourceSize.width / sourceSize.height

Layout.fillWidth: true
fillMode: Image.PreserveAspectFit
// Enforce aspect ratio of the component, as the fillMode does not do the job
Layout.preferredHeight: width / ratio

source: "../img/meshroom-anim-once.gif"
Expand All @@ -41,14 +43,14 @@ Page {
ColumnLayout {
Layout.fillWidth: true
Layout.fillHeight: true
property real buttonFontSize: 14

MaterialToolLabelButton {
id: manualButton
Layout.topMargin: 20
iconText: MaterialIcons.open_in_new
label: "Manual"
font.pointSize: 16
iconSize: 24
font.pointSize: parent.buttonFontSize
flat: true
leftPadding: 20
rightPadding: {
Expand All @@ -65,8 +67,7 @@ Page {
id: releaseNotesButton
iconText: MaterialIcons.open_in_new
label: "Release Notes"
font.pointSize: 16
iconSize: 24
font.pointSize: parent.buttonFontSize
flat: true
leftPadding: 20
rightPadding: {
Expand All @@ -83,8 +84,7 @@ Page {
id: websiteButton
iconText: MaterialIcons.open_in_new
label: "Website"
font.pointSize: 16
iconSize: 24
font.pointSize: parent.buttonFontSize
flat: true
leftPadding: 20
rightPadding: {
Expand All @@ -101,29 +101,22 @@ Page {
ColumnLayout {
id: sponsors
Layout.fillWidth: true
Layout.alignment: Qt.AlignHCenter

Rectangle {
// find better alternative
color: "transparent"
Item {
// Empty area that expands
Layout.fillWidth: true
Layout.fillHeight: true
}

Label {
Layout.alignment: Qt.AlignHCenter
text: "Sponsors"
font.pointSize: 16
}

Image {
Layout.alignment: Qt.AlignHCenter
property var ratio: sourceSize.width / sourceSize.height

Layout.preferredWidth: leftColumn.width * 0.6
Layout.preferredHeight: width / ratio
source: "../img/technicolor-group_rgb_primary_col-rev.png"
smooth: true
mipmap: true

MouseArea {
anchors.fill: parent
Expand All @@ -135,17 +128,13 @@ Page {
RowLayout {
id: brandsRow

Layout.fillWidth: true
Layout.leftMargin: leftColumn.width * 0.05
Layout.rightMargin: leftColumn.width * 0.05
Layout.alignment: Qt.AlignHCenter

Image {
property var ratio: sourceSize.width / sourceSize.height

Layout.fillWidth: true
Layout.preferredHeight: width / ratio
source: "../img/MPC_TG.png"
smooth: true
mipmap: true

MouseArea {
anchors.fill: parent
Expand All @@ -155,13 +144,7 @@ Page {
}

Image {
property var ratio: sourceSize.width / sourceSize.height

Layout.fillWidth: true
Layout.preferredHeight: width / ratio
source: "../img/MILL_TG.png"
smooth: true
mipmap: true

MouseArea {
anchors.fill: parent
Expand All @@ -171,13 +154,7 @@ Page {
}

Image {
property var ratio: sourceSize.width / sourceSize.height

Layout.fillWidth: true
Layout.preferredHeight: width / ratio
source: "../img/MIKROS_TG.png"
smooth: true
mipmap: true

MouseArea {
anchors.fill: parent
Expand All @@ -187,13 +164,7 @@ Page {
}

Image {
property var ratio: sourceSize.width / sourceSize.height

Layout.fillWidth: true
Layout.preferredHeight: width / ratio
source: "../img/TechnicolorGames_TG.png"
smooth: true
mipmap: true

MouseArea {
anchors.fill: parent
Expand All @@ -204,11 +175,10 @@ Page {
}

MaterialToolLabelButton {
Layout.topMargin: 20
Layout.topMargin: 5
Layout.bottomMargin: 10
iconText: MaterialIcons.favorite
label: "Support AliceVision"
font.pointSize: 16
iconSize: 24
flat: true
leftPadding: {
var padding = (leftColumn.width - labelItem.width - iconItem.width - 5) / 2
Expand All @@ -230,8 +200,6 @@ Page {
id: tabPanel
tabs: ["Pipelines", "Recent Projects"]

font.pointSize: 16

Layout.fillWidth: true
Layout.fillHeight: true

Expand All @@ -254,7 +222,6 @@ Page {
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignVCenter
text: modelData["name"]
font.pointSize: 10
}

Connections {
Expand Down Expand Up @@ -321,6 +288,8 @@ Page {
ToolTip.visible: hovered
ToolTip.text: modelData["path"]

font.pointSize: 24

text: modelData["thumbnail"] ? "" : MaterialIcons.description

Image {
Expand Down
Loading