mirror of
https://github.com/theupriser/steamify-cachyos-live-iso.git
synced 2026-10-02 15:10:26 +02:00
feat: The Steamify page's Summary is an unordered list: every chosen item's name and where it starts (gaming mode or desktop)
This commit is contained in:
1 parent
8246209a7e
commit
a817b8a558
1 file changed
+13
-6
@@ -1,6 +1,6 @@
|
|||||||
diff -ruN a/packagechooserq/PackageChooserQmlViewStep.cpp b/packagechooserq/PackageChooserQmlViewStep.cpp
|
diff -ruN a/packagechooserq/PackageChooserQmlViewStep.cpp b/packagechooserq/PackageChooserQmlViewStep.cpp
|
||||||
--- a/packagechooserq/PackageChooserQmlViewStep.cpp 2026-09-28 16:56:21
|
--- a/packagechooserq/PackageChooserQmlViewStep.cpp 2026-09-28 16:56:21
|
||||||
+++ b/packagechooserq/PackageChooserQmlViewStep.cpp 2026-09-28 16:56:21
|
+++ b/packagechooserq/PackageChooserQmlViewStep.cpp 2026-09-28 16:57:29
|
||||||
@@ -17,6 +17,12 @@
|
@@ -17,6 +17,12 @@
|
||||||
#include "utils/System.h"
|
#include "utils/System.h"
|
||||||
#include "utils/Variant.h"
|
#include "utils/Variant.h"
|
||||||
@@ -14,7 +14,7 @@ diff -ruN a/packagechooserq/PackageChooserQmlViewStep.cpp b/packagechooserq/Pack
|
|||||||
CALAMARES_PLUGIN_FACTORY_DEFINITION( PackageChooserQmlViewStepFactory, registerPlugin< PackageChooserQmlViewStep >(); )
|
CALAMARES_PLUGIN_FACTORY_DEFINITION( PackageChooserQmlViewStepFactory, registerPlugin< PackageChooserQmlViewStep >(); )
|
||||||
|
|
||||||
PackageChooserQmlViewStep::PackageChooserQmlViewStep( QObject* parent )
|
PackageChooserQmlViewStep::PackageChooserQmlViewStep( QObject* parent )
|
||||||
@@ -35,9 +41,54 @@
|
@@ -35,9 +41,61 @@
|
||||||
QString
|
QString
|
||||||
PackageChooserQmlViewStep::prettyStatus() const
|
PackageChooserQmlViewStep::prettyStatus() const
|
||||||
{
|
{
|
||||||
@@ -61,13 +61,20 @@ diff -ruN a/packagechooserq/PackageChooserQmlViewStep.cpp b/packagechooserq/Pack
|
|||||||
+ gaming = gaming || id == QStringLiteral( "gaming" );
|
+ gaming = gaming || id == QStringLiteral( "gaming" );
|
||||||
+ on << labels.value( id, id ).toHtmlEscaped();
|
+ on << labels.value( id, id ).toHtmlEscaped();
|
||||||
+ }
|
+ }
|
||||||
+ QString status = on.isEmpty() ? tr( "Steamify: <strong>nothing</strong>" )
|
|
||||||
+ : tr( "Steamify: <strong>%1</strong>" ).arg( on.join( QStringLiteral( ", " ) ) );
|
|
||||||
+ if ( gaming )
|
+ if ( gaming )
|
||||||
+ {
|
+ {
|
||||||
+ status += QStringLiteral( "<br/>" )
|
+ on << ( desktop ? tr( "Starts in the desktop" ) : tr( "Starts in gaming mode" ) );
|
||||||
+ + ( desktop ? tr( "Starts in: <strong>the desktop</strong>" ) : tr( "Starts in: <strong>gaming mode</strong>" ) );
|
|
||||||
+ }
|
+ }
|
||||||
|
+ if ( on.isEmpty() )
|
||||||
|
+ {
|
||||||
|
+ return tr( "Steamify: <strong>nothing</strong>" );
|
||||||
|
+ }
|
||||||
|
+ QString status = tr( "Steamify:" ) + QStringLiteral( "<ul>" );
|
||||||
|
+ for ( const auto& item : on )
|
||||||
|
+ {
|
||||||
|
+ status += QStringLiteral( "<li>" ) + item + QStringLiteral( "</li>" );
|
||||||
|
+ }
|
||||||
|
+ status += QStringLiteral( "</ul>" );
|
||||||
+ return status;
|
+ return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user