Skip to content
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
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ space_around_operators = true
csharp_new_line_before_open_brace = none
csharp_indent_case_contents = true
csharp_language_version = latest
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_blocks = true
indent_style = space
indent_size = 2


[*.{xml,xaml,axaml}]
xml.attribute.new_line = true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/dotnet_innosetup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:

- name: Update version in iss file
run: |
sed -i 's/#define AppVersion ".*"/#define AppVersion "${{ github.event.inputs.version }}"/' .winbuild/urlhandler.iss
sed -i 's/#define AppVersion ".*"/#define AppVersion "${{ github.event.inputs.version }}"/' .winbuild/ChemLocalLink.iss

- name: Restore dependencies
run: dotnet restore
- name: Build
Expand All @@ -38,12 +38,12 @@ jobs:
- name: Publish project
run: |
dotnet publish -p:PublishSingleFile=true --self-contained false
ren "bin\Release\net8.0-windows10.0.17763.0\win-x64\publish\urlhandler.exe" "ChemLocalLink.exe"
ren "bin\Release\net8.0-windows10.0.17763.0\win-x64\publish\ChemLocalLink.exe" "ChemLocalLink.exe"

- name: Build Installer
uses: Minionguyjpro/Inno-Setup-Action@v1.2.2
with:
path: .winbuild/urlhandler.iss
path: .winbuild/ChemLocalLink.iss

- name: Create GitHub Release
id: create_release
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
bin/
obj/
.testapi/
.config/
.vs/
.idea/
143 changes: 0 additions & 143 deletions .unixbuild/DEBREATE.dbp

This file was deleted.

4 changes: 2 additions & 2 deletions .winbuild/urlhandler.iss → .winbuild/ChemLocalLink.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "CodeDependencies.iss"

#define AppName "ChemLocalLink"
#define AppVersion "1.0.2"
#define AppVersion "2.0.0"
#define Protocol "chemotion"

[Setup]
Expand All @@ -13,7 +13,7 @@ AppPublisherURL=https://www.scc.kit.edu/
AppVersion={#AppVersion}
AppComments=ChemLocalLink
AppContact=SDM, SCC, KIT
AppCopyright=Copyright (C) 2024 KIT Scientific Computing Center (SCC)
AppCopyright=Copyright (C) 2025 KIT Scientific Computing Center (SCC)
DefaultDirName={commonpf64}\{#AppName}
DefaultGroupName={#AppName}
OutputDir=C:/app/build/.
Expand Down
File renamed without changes.
143 changes: 90 additions & 53 deletions App.axaml
Original file line number Diff line number Diff line change
@@ -1,53 +1,90 @@
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="urlhandler.App"
xmlns:local="using:urlhandler"
xmlns:behaviors="clr-namespace:urlhandler.Behaviors"
RequestedThemeVariant="Dark">
<!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->

<Application.Styles>
<Style Selector="Button:disabled">
<Setter Property="Template">
<ControlTemplate>

<ContentControl Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
Padding="{TemplateBinding Padding}"
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
ToolTip.Tip="Only enabled when a file is selected!"
IsEnabled="False"
behaviors:ShowDisabledTooltipExtension.ShowOnDisabled="True"
Foreground="Gray"/>
</ControlTemplate>
</Setter>
</Style>
<FluentTheme>
<FluentTheme.Palettes>
<ColorPaletteResources x:Key="Light" Accent="#ff00579c" AltHigh="White" AltLow="White"
AltMedium="White" AltMediumHigh="White" AltMediumLow="White"
BaseHigh="Black" BaseLow="#ffcccccc" BaseMedium="#ff898989"
BaseMediumHigh="#ff5d5d5d" BaseMediumLow="#ff737373"
ChromeAltLow="#ff5d5d5d" ChromeBlackHigh="Black"
ChromeBlackLow="#ffcccccc" ChromeBlackMedium="#ff5d5d5d"
ChromeBlackMediumLow="#ff898989" ChromeDisabledHigh="#ffcccccc"
ChromeDisabledLow="#ff898989" ChromeGray="#ff737373"
ChromeHigh="#ffcccccc" ChromeLow="#ffececec" ChromeMedium="#ffe6e6e6"
ChromeMediumLow="#ffececec" ChromeWhite="White" ListLow="#ffe6e6e6"
ListMedium="#ffcccccc" RegionColor="White" />
<ColorPaletteResources x:Key="Dark" Accent="#ff00579c" AltHigh="Black" AltLow="Black"
AltMedium="Black" AltMediumHigh="Black" AltMediumLow="Black"
BaseHigh="White" BaseLow="#ff333333" BaseMedium="#ff9a9a9a"
BaseMediumHigh="#ffb4b4b4" BaseMediumLow="#ff676767"
ChromeAltLow="#ffb4b4b4" ChromeBlackHigh="Black"
ChromeBlackLow="#ffb4b4b4" ChromeBlackMedium="Black"
ChromeBlackMediumLow="Black" ChromeDisabledHigh="#ff333333"
ChromeDisabledLow="#ff9a9a9a" ChromeGray="Gray" ChromeHigh="Gray"
ChromeLow="#ff151515" ChromeMedium="#ff1d1d1d" ChromeMediumLow="#ff2c2c2c"
ChromeWhite="White" ListLow="#ff1d1d1d" ListMedium="#ff333333"
RegionColor="Black" />
</FluentTheme.Palettes>
</FluentTheme>
</Application.Styles>
</Application>
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="ChemLocalLink.App"
xmlns:local="using:ChemLocalLink"
xmlns:behaviors="clr-namespace:ChemLocalLink.Behaviors"
xmlns:extensions="clr-namespace:ChemLocalLink.Utilities"
RequestedThemeVariant="Dark">
<!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
<Application.Styles>
<Style Selector="TextBlock">
<Setter Property="FontFamily"
Value="Segoe UI, San Francisco, Ubuntu, Arial, sans-serif" />
</Style>
<Style Selector="Button:disabled">
<Setter Property="Template">
<ControlTemplate>
<ContentControl Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
Padding="{TemplateBinding Padding}"
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
ToolTip.Tip="Only enabled when a file is selected!"
IsEnabled="False"
extensions:ShowTooltipExtension.ShowOnDisabled="True"
Foreground="Gray" />
</ControlTemplate>
</Setter>
</Style>
<FluentTheme>
<FluentTheme.Palettes>
<ColorPaletteResources x:Key="Light"
Accent="#ff00579c"
AltHigh="White"
AltLow="White"
AltMedium="White"
AltMediumHigh="White"
AltMediumLow="White"
BaseHigh="Black"
BaseLow="#ffcccccc"
BaseMedium="#ff898989"
BaseMediumHigh="#ff5d5d5d"
BaseMediumLow="#ff737373"
ChromeAltLow="#ff5d5d5d"
ChromeBlackHigh="Black"
ChromeBlackLow="#ffcccccc"
ChromeBlackMedium="#ff5d5d5d"
ChromeBlackMediumLow="#ff898989"
ChromeDisabledHigh="#ffcccccc"
ChromeDisabledLow="#ff898989"
ChromeGray="#ff737373"
ChromeHigh="#ffcccccc"
ChromeLow="#ffececec"
ChromeMedium="#ffe6e6e6"
ChromeMediumLow="#ffececec"
ChromeWhite="White"
ListLow="#ffe6e6e6"
ListMedium="#ffcccccc"
RegionColor="White" />
<ColorPaletteResources x:Key="Dark"
Accent="#ff00579c"
AltHigh="Black"
AltLow="Black"
AltMedium="Black"
AltMediumHigh="Black"
AltMediumLow="Black"
BaseHigh="White"
BaseLow="#ff333333"
BaseMedium="#ff9a9a9a"
BaseMediumHigh="#ffb4b4b4"
BaseMediumLow="#ff676767"
ChromeAltLow="#ffb4b4b4"
ChromeBlackHigh="Black"
ChromeBlackLow="#ffb4b4b4"
ChromeBlackMedium="Black"
ChromeBlackMediumLow="Black"
ChromeDisabledHigh="#ff333333"
ChromeDisabledLow="#ff9a9a9a"
ChromeGray="Gray"
ChromeHigh="Gray"
ChromeLow="#ff151515"
ChromeMedium="#ff1d1d1d"
ChromeMediumLow="#ff2c2c2c"
ChromeWhite="White"
ListLow="#ff1d1d1d"
ListMedium="#ff333333"
RegionColor="Black" />
</FluentTheme.Palettes>
</FluentTheme>
</Application.Styles>
</Application>
Loading
Loading