Add Flatpak manifest and custom carousel icon
Some checks failed
SwiftLint / SwiftLint (push) Failing after 5s

This commit is contained in:
david-swift 2024-11-25 07:18:22 +01:00
parent d1f30b9de5
commit 4a60dd9e5f
4 changed files with 52 additions and 7 deletions

View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" height="16px" viewBox="0 0 16 16" width="16px"><path d="m 5 2 c -1.089844 0 -2 0.910156 -2 2 v 5 c 0 1.089844 0.910156 2 2 2 h 6 c 1.089844 0 2 -0.910156 2 -2 v -5 c 0 -1.089844 -0.910156 -2 -2 -2 z m -3 1 c -1.089844 0 -2 0.910156 -2 2 v 3 c 0 1.089844 0.910156 2 2 2 z m 12 0 v 7 c 1.089844 0 2 -0.910156 2 -2 v -3 c 0 -1.089844 -0.910156 -2 -2 -2 z m -9 1 h 6 v 5 h -6 z m 0 8 c -0.550781 0 -1 0.449219 -1 1 s 0.449219 1 1 1 s 1 -0.449219 1 -1 s -0.449219 -1 -1 -1 z m 3 0 c -0.550781 0 -1 0.449219 -1 1 s 0.449219 1 1 1 s 1 -0.449219 1 -1 s -0.449219 -1 -1 -1 z m 3 0 c -0.550781 0 -1 0.449219 -1 1 s 0.449219 1 1 1 s 1 -0.449219 1 -1 s -0.449219 -1 -1 -1 z m 0 0" fill="#222222"/></svg>

After

Width:  |  Height:  |  Size: 771 B

View File

@ -24,8 +24,6 @@ public enum Icon: Equatable {
case copy
/// The navigation icon.
case navigation
/// The panel icon.
case panel
/// The warning icon.
case warning
/// The trash icon.
@ -57,8 +55,6 @@ public enum Icon: Equatable {
"\u{E8C8}"
case .navigation:
"\u{E700}"
case .panel:
"\u{E7FB}"
case .warning:
"\u{E7BA}"
case .trash:
@ -99,8 +95,6 @@ public enum Icon: Equatable {
.editCopy
case .navigation:
.sidebarShow
case .panel:
.panelCenter
case .warning:
.dialogWarning
case .trash:

View File

@ -137,7 +137,7 @@ enum Item: String, FlatNavigationItem, CaseIterable, Equatable, Codable {
case .navigation:
.navigation
case .carousel:
.panel
.custom(winui: "🤣", adwaita: "dev.aparoksha.Demo.carousel-symbolic")
case .alert:
.warning
}

49
dev.aparoksha.Demo.json Normal file
View File

@ -0,0 +1,49 @@
{
"app-id": "dev.aparoksha.Demo",
"runtime": "org.gnome.Platform",
"runtime-version": "master",
"sdk": "org.gnome.Sdk",
"sdk-extensions": [
"org.freedesktop.Sdk.Extension.swift6"
],
"command": "Demo",
"finish-args": [
"--share=ipc",
"--socket=fallback-x11",
"--device=dri",
"--socket=wayland"
],
"build-options": {
"append-path": "/usr/lib/sdk/swift6/bin",
"prepend-ld-library-path": "/usr/lib/sdk/swift6/lib"
},
"cleanup": [
"/include",
"/lib/pkgconfig",
"/man",
"/share/doc",
"/share/gtk-doc",
"/share/man",
"/share/pkgconfig",
"*.la",
"*.a"
],
"modules": [
{
"name": "Demo",
"builddir": true,
"buildsystem": "simple",
"sources": [
{
"type": "dir",
"path": "."
}
],
"build-commands": [
"swift build --static-swift-stdlib",
"install -Dm755 .build/debug/Demo /app/bin/Demo",
"install -Dm644 Data/GNOME/carousel-symbolic.svg $DESTDIR/app/share/icons/hicolor/symbolic/apps/dev.aparoksha.Demo.carousel-symbolic.svg"
]
}
]
}