first updates

This commit is contained in:
cmclark00 2024-08-10 20:01:17 -04:00
parent 7725ce7a40
commit 509a26fe4a
3 changed files with 81 additions and 19 deletions

View file

@ -8,7 +8,7 @@
/* Repository URL */ /* Repository URL */
#define OSLIST_URL "https://downloads.raspberrypi.org/os_list_imagingutility_v4.json" #define OSLIST_URL "file:///home/corey/muOS/os_list.json"
/* Time synchronization URL (only used on eglfs QPA platform, URL must be HTTP) */ /* Time synchronization URL (only used on eglfs QPA platform, URL must be HTTP) */
#define TIME_URL "http://downloads.raspberrypi.org/os_list_imagingutility_v4.json?time_synchronization" #define TIME_URL "http://downloads.raspberrypi.org/os_list_imagingutility_v4.json?time_synchronization"

View file

@ -89,7 +89,7 @@ ApplicationWindow {
} }
Rectangle { Rectangle {
color: "#cd2355" color: "#fcad01"
implicitWidth: window.width implicitWidth: window.width
implicitHeight: window.height * (1 - 1/4) implicitHeight: window.height * (1 - 1/4)
@ -116,7 +116,7 @@ ApplicationWindow {
Text { Text {
id: text0 id: text0
color: "#ffffff" color: "#ffffff"
text: qsTr("Raspberry Pi Device") text: qsTr("Retro Gaming Handheld Device")
Layout.fillWidth: true Layout.fillWidth: true
Layout.preferredHeight: 17 Layout.preferredHeight: 17
Layout.preferredWidth: 100 Layout.preferredWidth: 100
@ -140,7 +140,7 @@ ApplicationWindow {
hwlist.forceActiveFocus() hwlist.forceActiveFocus()
} }
Accessible.ignored: ospopup.visible || dstpopup.visible || hwpopup.visible Accessible.ignored: ospopup.visible || dstpopup.visible || hwpopup.visible
Accessible.description: qsTr("Select this button to choose your target Raspberry Pi") Accessible.description: qsTr("Select this button to choose your target Retro Gaming Handheld")
} }
} }
@ -154,7 +154,7 @@ ApplicationWindow {
Text { Text {
id: text1 id: text1
color: "#ffffff" color: "#ffffff"
text: qsTr("Operating System") text: qsTr("Custom Firmware")
Layout.fillWidth: true Layout.fillWidth: true
Layout.preferredHeight: 17 Layout.preferredHeight: 17
font.pixelSize: 12 font.pixelSize: 12
@ -165,7 +165,7 @@ ApplicationWindow {
ImButton { ImButton {
id: osbutton id: osbutton
text: imageWriter.srcFileName() === "" ? qsTr("CHOOSE OS") : imageWriter.srcFileName() text: imageWriter.srcFileName() === "" ? qsTr("CHOOSE CFW") : imageWriter.srcFileName()
spacing: 0 spacing: 0
padding: 0 padding: 0
bottomPadding: 0 bottomPadding: 0
@ -177,7 +177,7 @@ ApplicationWindow {
osswipeview.currentItem.forceActiveFocus() osswipeview.currentItem.forceActiveFocus()
} }
Accessible.ignored: ospopup.visible || dstpopup.visible || hwpopup.visible Accessible.ignored: ospopup.visible || dstpopup.visible || hwpopup.visible
Accessible.description: qsTr("Select this button to change the operating system") Accessible.description: qsTr("Select this button to change the custom firmware")
} }
} }
@ -245,7 +245,7 @@ ApplicationWindow {
id: progressBar id: progressBar
Layout.fillWidth: true Layout.fillWidth: true
visible: false visible: false
Material.background: "#d15d7d" Material.background: "#fcad01"
} }
} }
@ -347,7 +347,7 @@ ApplicationWindow {
visible: imageWriter.isEmbeddedMode() visible: imageWriter.isEmbeddedMode()
implicitWidth: langbar.width implicitWidth: langbar.width
implicitHeight: langbar.height implicitHeight: langbar.height
color: "#ffffe3" color: "#fcad01"
radius: 5 radius: 5
RowLayout { RowLayout {
@ -442,7 +442,7 @@ ApplicationWindow {
// background of title // background of title
Rectangle { Rectangle {
color: "#f5f5f5" color: "#fcad01"
anchors.right: parent.right anchors.right: parent.right
anchors.top: parent.top anchors.top: parent.top
height: 35 height: 35
@ -478,7 +478,7 @@ ApplicationWindow {
spacing: 10 spacing: 10
Text { Text {
text: qsTr("Raspberry Pi Device") text: qsTr("Retro Gaming Handheld Device")
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
Layout.fillWidth: true Layout.fillWidth: true
@ -544,7 +544,7 @@ ApplicationWindow {
// background of title // background of title
Rectangle { Rectangle {
color: "#f5f5f5" color: "#fcad01"
anchors.right: parent.right anchors.right: parent.right
anchors.top: parent.top anchors.top: parent.top
height: 35 height: 35
@ -581,7 +581,7 @@ ApplicationWindow {
spacing: 10 spacing: 10
Text { Text {
text: qsTr("Operating System") text: qsTr("Custom Firmware")
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
Layout.fillWidth: true Layout.fillWidth: true
@ -819,7 +819,7 @@ ApplicationWindow {
Rectangle { Rectangle {
id: bgrect id: bgrect
anchors.fill: parent anchors.fill: parent
color: "#f5f5f5" color: "#fcad01"
visible: mouseOver && parent.ListView.view.currentIndex !== index visible: mouseOver && parent.ListView.view.currentIndex !== index
property bool mouseOver: false property bool mouseOver: false
} }
@ -940,7 +940,7 @@ ApplicationWindow {
// background of title // background of title
Rectangle { Rectangle {
color: "#f5f5f5" color: "#fcad01"
anchors.right: parent.right anchors.right: parent.right
anchors.top: parent.top anchors.top: parent.top
height: 35 height: 35
@ -1050,7 +1050,7 @@ ApplicationWindow {
Rectangle { Rectangle {
id: dstbgrect id: dstbgrect
anchors.fill: parent anchors.fill: parent
color: "#f5f5f5" color: "#fcad01"
visible: mouseOver && parent.ListView.view.currentIndex !== index visible: mouseOver && parent.ListView.view.currentIndex !== index
property bool mouseOver: false property bool mouseOver: false
@ -1139,7 +1139,7 @@ ApplicationWindow {
yesButton: true yesButton: true
noButton: true noButton: true
title: qsTr("Are you sure you want to quit?") title: qsTr("Are you sure you want to quit?")
text: qsTr("Raspberry Pi Imager is still busy.<br>Are you sure you want to quit?") text: qsTr("Retro Imager is still busy.<br>Are you sure you want to quit?")
onYes: { onYes: {
Qt.quit() Qt.quit()
} }
@ -1264,7 +1264,7 @@ ApplicationWindow {
return return
progressText.text = qsTr("Verifying... %1%").arg(Math.floor(newPos*100)) progressText.text = qsTr("Verifying... %1%").arg(Math.floor(newPos*100))
progressBar.Material.accent = "#6cc04a" progressBar.Material.accent = "#fcad01"
progressBar.value = newPos progressBar.value = newPos
} }
} }
@ -1635,7 +1635,7 @@ ApplicationWindow {
oslist.currentIndex = -1 oslist.currentIndex = -1
osswipeview.currentIndex = 0 osswipeview.currentIndex = 0
imageWriter.setSrc("") imageWriter.setSrc("")
osbutton.text = qsTr("CHOOSE OS") osbutton.text = qsTr("CHOOSE CFW")
writebutton.enabled = false writebutton.enabled = false
hwbutton.text = hwmodel.name hwbutton.text = hwmodel.name

62
src/os_list.json Normal file
View file

@ -0,0 +1,62 @@
{
"os_list": [
{
"name": "muOS 2405.1 Refried Beans for RG35XX Plus/H/SP/2024",
"description": "muOS 2405.1 Refried Beans firmware optimized for Anbernic RG35XX Plus/H/SP/2024.",
"icon": "https://muos.dev/lib/tpl/muos/images/logo.png",
"url": "https://dl.muos.dev/RG35XX-SPLUSH24/muOS-RG35XX-2405.1-REFRIED.zip",
"release_date": "2024-06-23",
"image_download_size": 1900000000,
"extract_size": 4300000000,
"extract_sha256": "60b556c123825c586b02da6e257d6e385a70ef64a7c542f4287c373f8b853405",
"devices": [
"rg35xxh",
"rg35xx_plus",
"rg35xx_sp",
"rg35xx_2024"
]
},
{
"name": "muOS 2405.1 Refried Beans for RG28XX",
"description": "muOS 2405.1 Refried Beans firmware optimized for Anbernic RG35XXH.",
"icon": "https://muos.dev/lib/tpl/muos/images/logo.png",
"url": "https://dl.muos.dev/RG28XX/muOS-RG28XX-2405.1-REFRIED.zip",
"release_date": "2024-06-23",
"image_download_size": 1900000000,
"extract_size": 4600000000,
"extract_sha256": "4d538985e82eef5aa98b438f88276bb69c015533b0ee537ddac3d8642d2f8e94",
"devices": [
"rg28xx"
]
}
],
"imager": {
"devices": [
{
"name": "Anbernic RG40XXH",
"tags": ["rg40xxh"]
},
{
"name": "Anbernic RG35XXH",
"tags": ["rg35xxh"]
},
{
"name": "Anbernic RG35XX Plus",
"tags": ["rg35xx_plus"],
"default": "True"
},
{
"name": "Anbernic RG35XX SP",
"tags": ["rg35xx_sp"]
},
{
"name": "Anbernic RG35XX 2024",
"tags": ["rg35xx_2024"]
},
{
"name": "Anbernic RG28XX",
"tags": ["rg28xx"]
}
]
}
}