Compare commits
9
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c9ba8e3292 | ||
|
|
4327ff0e2e | ||
|
|
da69e3e253 | ||
|
|
d98a97f5fe | ||
|
|
2d60526889 | ||
|
|
61c48c57ea | ||
|
|
fa69074758 | ||
|
|
0f04d1116e | ||
|
|
0888318101 |
No files matched your search
@@ -0,0 +1,37 @@
|
|||||||
|
name: Linux Source Checks and Windows EXE Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
source-checks-and-build:
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
container:
|
||||||
|
image: node:20-alpine
|
||||||
|
steps:
|
||||||
|
- name: Install Git and Mono compiler
|
||||||
|
run: apk add --no-cache git mono
|
||||||
|
shell: sh
|
||||||
|
- name: Check out repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Check latest commit for whitespace errors
|
||||||
|
run: git show --check --oneline HEAD
|
||||||
|
shell: sh
|
||||||
|
- name: Build Windows Forms EXE with Mono
|
||||||
|
run: |
|
||||||
|
mkdir -p release
|
||||||
|
mcs -target:winexe -optimize+ -out:release/TAP-Uploader.exe -r:System.Windows.Forms.dll -r:System.Drawing.dll uploader/TapUploader.cs
|
||||||
|
test -s release/TAP-Uploader.exe
|
||||||
|
shell: sh
|
||||||
|
- name: Upload Windows EXE artifact
|
||||||
|
uses: christopherhx/gitea-upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: TAP-Uploader-Windows
|
||||||
|
path: release/TAP-Uploader.exe
|
||||||
|
if-no-files-found: error
|
||||||
@@ -23,3 +23,7 @@ Zum Prüfen der Verbindung gibt es `TAP-Uploader.exe --check`. `--list` liest di
|
|||||||
## Neu bauen
|
## Neu bauen
|
||||||
|
|
||||||
In PowerShell `uploader/Build.ps1` ausführen. Das Skript nutzt den Windows-C#-Compiler aus `.NET Framework 4.x` und erzeugt `release/TAP-Uploader.exe`. Der Quellcode liegt in `uploader/TapUploader.cs`.
|
In PowerShell `uploader/Build.ps1` ausführen. Das Skript nutzt den Windows-C#-Compiler aus `.NET Framework 4.x` und erzeugt `release/TAP-Uploader.exe`. Der Quellcode liegt in `uploader/TapUploader.cs`.
|
||||||
|
|
||||||
|
## Dunkle Darstellung
|
||||||
|
|
||||||
|
Der Quellcode verwendet einen schwarzen Fensterhintergrund, helle Schrift und dunkle Listen sowie Schaltflaechen. Systemdialoge, Listenspaltenkoepfe und Fortschrittsanzeige behalten ihre Windows-Darstellung. Nach Aenderungen muss die EXE mit `uploader/Build.ps1` unter Windows neu gebaut werden; die eingecheckte EXE enthaelt diese Darstellungsanpassung noch nicht.
|
||||||
Binary file not shown.
@@ -297,6 +297,7 @@ namespace PlasmaTapUploader
|
|||||||
remoteStatus.AutoEllipsis = true;
|
remoteStatus.AutoEllipsis = true;
|
||||||
Controls.AddRange(new Control[] { heading, hintLabel, fileList, chooseButton, clearButton, uploadButton,
|
Controls.AddRange(new Control[] { heading, hintLabel, fileList, chooseButton, clearButton, uploadButton,
|
||||||
progressBar, statusLabel, remoteHeading, refreshButton, remoteList, remoteStatus });
|
progressBar, statusLabel, remoteHeading, refreshButton, remoteList, remoteStatus });
|
||||||
|
ApplyDarkTheme();
|
||||||
MinimumSize = Size;
|
MinimumSize = Size;
|
||||||
ClientSizeChanged += delegate { LayoutControls(); };
|
ClientSizeChanged += delegate { LayoutControls(); };
|
||||||
LayoutControls();
|
LayoutControls();
|
||||||
@@ -342,6 +343,29 @@ namespace PlasmaTapUploader
|
|||||||
worker.RunWorkerCompleted += UploadCompleted;
|
worker.RunWorkerCompleted += UploadCompleted;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void ApplyDarkTheme()
|
||||||
|
{
|
||||||
|
BackColor = Color.Black;
|
||||||
|
ForeColor = Color.WhiteSmoke;
|
||||||
|
Color surface = Color.FromArgb(32, 32, 32);
|
||||||
|
fileList.BackColor = surface;
|
||||||
|
fileList.ForeColor = ForeColor;
|
||||||
|
remoteList.BackColor = surface;
|
||||||
|
remoteList.ForeColor = ForeColor;
|
||||||
|
|
||||||
|
foreach (Button button in new Button[] { chooseButton, clearButton, uploadButton, refreshButton })
|
||||||
|
{
|
||||||
|
// Visuelle Windows-Stile wuerden die explizite Hintergrundfarbe ersetzen.
|
||||||
|
button.FlatStyle = FlatStyle.Flat;
|
||||||
|
button.UseVisualStyleBackColor = false;
|
||||||
|
button.BackColor = Color.FromArgb(48, 48, 48);
|
||||||
|
button.ForeColor = ForeColor;
|
||||||
|
button.FlatAppearance.BorderColor = Color.Gray;
|
||||||
|
button.FlatAppearance.MouseOverBackColor = Color.FromArgb(64, 64, 64);
|
||||||
|
button.FlatAppearance.MouseDownBackColor = Color.FromArgb(80, 80, 80);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void LayoutControls()
|
private void LayoutControls()
|
||||||
{
|
{
|
||||||
int contentWidth = ClientSize.Width - 45;
|
int contentWidth = ClientSize.Width - 45;
|
||||||
|
|||||||
Reference in new issue
Block a user