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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ The format is based on Keep a Changelog, and this project follows Semantic Versi

## [Unreleased]

### Changed
- Bundled Inter Regular, SemiBold, and Bold font assets so Windows uses consistent Latin UI typography without depending on an installed UI font, with `Yu Gothic UI` and `Meiryo` retained as Japanese fallbacks.

### Fixed
- The Create button now uses the same rounded two-pixel focus border as the Command and Search fields without shifting its content.
- Compact Create and window-caption button tooltips now optically center their text vertically.
- macOS and Linux retain their platform font stacks instead of inheriting the Windows-targeted embedded Inter family, preventing unsupported characters from rendering as missing-glyph boxes.

## [2.0.6] - 2026-06-04

### Fixed
Expand Down
Binary file added Praxis.Avalonia/Assets/Fonts/Inter-Bold.ttf
Binary file not shown.
Binary file added Praxis.Avalonia/Assets/Fonts/Inter-Regular.ttf
Binary file not shown.
Binary file added Praxis.Avalonia/Assets/Fonts/Inter-SemiBold.ttf
Binary file not shown.
92 changes: 92 additions & 0 deletions Praxis.Avalonia/Assets/Fonts/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL

-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION AND CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
22 changes: 14 additions & 8 deletions Praxis.Avalonia/Themes/PseudoAcrylicTheme.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
xmlns:chrome="using:Avalonia.Controls.Chrome"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Styles.Resources>
<FontFamily x:Key="PraxisWindowsUiFontFamily">avares://Praxis/Assets/Fonts#Inter, Yu Gothic UI, Meiryo</FontFamily>
<LinearGradientBrush x:Key="PraxisShellBackground" StartPoint="0%,0%" EndPoint="100%,100%">
<GradientStop Color="#F0202020" Offset="0" />
<GradientStop Color="#E2323232" Offset="0.42" />
Expand Down Expand Up @@ -44,7 +45,7 @@
</Style>

<Style Selector="Window.praxis-main.windows">
<Setter Property="FontFamily" Value="Segoe UI Variable Text, Segoe UI, Yu Gothic UI, Meiryo" />
<Setter Property="FontFamily" Value="{StaticResource PraxisWindowsUiFontFamily}" />
</Style>

<Style Selector="Window.praxis-main.light">
Expand Down Expand Up @@ -224,11 +225,13 @@
<Style Selector="Button.praxis-create">
<Setter Property="Background" Value="#565656" />
<Setter Property="Foreground" Value="{StaticResource PraxisTextPrimaryBrush}" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="BorderThickness" Value="2" />
<Setter Property="CornerRadius" Value="4" />
<Setter Property="Padding" Value="8,5" />
<Setter Property="Height" Value="40" />
<Setter Property="MinHeight" Value="40" />
<Setter Property="FocusAdorner" Value="{x:Null}" />
<Setter Property="Template">
<ControlTemplate>
<Border Background="{TemplateBinding Background}"
Expand All @@ -245,6 +248,11 @@
</Setter>
</Style>

<Style Selector="Button.praxis-create:focus">
<Setter Property="BorderBrush" Value="#A0A0A0" />
<Setter Property="BorderThickness" Value="2" />
</Style>

<Style Selector="Button.praxis-create:pointerover">
<Setter Property="Background" Value="#444444" />
</Style>
Expand Down Expand Up @@ -890,7 +898,7 @@
</Style>

<Style Selector="Window.windows Grid.praxis-tooltip-grid TextBlock">
<Setter Property="FontFamily" Value="Segoe UI Variable Text, Segoe UI, Yu Gothic UI, Meiryo" />
<Setter Property="FontFamily" Value="{StaticResource PraxisWindowsUiFontFamily}" />
</Style>

<Style Selector="ToolTip">
Expand All @@ -901,18 +909,16 @@
</Style>

<Style Selector="Window.windows ToolTip">
<Setter Property="FontFamily" Value="Segoe UI Variable Text, Segoe UI, Yu Gothic UI, Meiryo" />
<Setter Property="FontFamily" Value="{StaticResource PraxisWindowsUiFontFamily}" />
</Style>

<Style Selector="ToolTip TextBlock">
<Setter Property="LineHeight" Value="16" />
<Setter Property="VerticalAlignment" Value="Center" />
</Style>

<Style Selector="TextBlock.praxis-caption-tooltip">
<Setter Property="LineHeight" Value="16" />
<Setter Property="Margin" Value="0,1,0,2" />
<Setter Property="VerticalAlignment" Value="Center" />
<Style Selector="TextBlock.praxis-compact-tooltip">
<Setter Property="Margin" Value="0,1,0,0" />
</Style>

<Style Selector="TextBlock.praxis-tooltip-label">
Expand Down
24 changes: 16 additions & 8 deletions Praxis.Avalonia/Views/MainWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@
VerticalAlignment="Top">
<Button Classes="praxis-traffic praxis-close"
IsTabStop="False"
ToolTip.Tip="Close"
behaviors:WindowChromeButtonBehavior.Action="Close">
<ToolTip.Tip>
<TextBlock Classes="praxis-compact-tooltip" Text="Close" />
</ToolTip.Tip>
<Grid Classes="praxis-traffic-symbol praxis-traffic-close-glyph">
<Path Data="M 4.4 4.4 L 8.6 8.6 M 8.6 4.4 L 4.4 8.6"
StrokeThickness="1.3"
Expand All @@ -54,8 +56,10 @@
<Button Classes="praxis-traffic praxis-minimize"
x:Name="MacMinimizeButton"
IsTabStop="False"
ToolTip.Tip="Minimize"
behaviors:WindowChromeButtonBehavior.Action="Minimize">
<ToolTip.Tip>
<TextBlock Classes="praxis-compact-tooltip" Text="Minimize" />
</ToolTip.Tip>
<Grid Classes="praxis-traffic-symbol praxis-traffic-minimize-glyph">
<Path Data="M 4 6.5 L 9 6.5"
StrokeThickness="1.4"
Expand All @@ -64,8 +68,10 @@
</Button>
<Button Classes="praxis-traffic praxis-maximize"
IsTabStop="False"
ToolTip.Tip="Full Screen"
behaviors:WindowChromeButtonBehavior.Action="ToggleMaximize">
<ToolTip.Tip>
<TextBlock Classes="praxis-compact-tooltip" Text="Full Screen" />
</ToolTip.Tip>
<Grid Classes="praxis-traffic-symbol praxis-traffic-fullscreen-glyph">
<Path Data="M 3.6 3.6 L 8.2 3.6 L 3.6 8.2 Z" />
<Path Data="M 9.4 4.8 L 9.4 9.4 L 4.8 9.4 Z" />
Expand All @@ -88,7 +94,7 @@
chrome:WindowDecorationProperties.ElementRole="MinimizeButton"
behaviors:WindowChromeButtonBehavior.Action="Minimize">
<ToolTip.Tip>
<TextBlock Classes="praxis-caption-tooltip" Text="Minimize" />
<TextBlock Classes="praxis-compact-tooltip" Text="Minimize" />
</ToolTip.Tip>
<TextBlock Text="&#xE921;"
FontFamily="Segoe Fluent Icons, Segoe UI Symbol"
Expand All @@ -101,7 +107,7 @@
behaviors:WindowChromeButtonBehavior.Action="ToggleMaximize">
<ToolTip.Tip>
<TextBlock x:Name="WindowsMaximizeTooltip"
Classes="praxis-caption-tooltip"
Classes="praxis-compact-tooltip"
Text="Maximize" />
</ToolTip.Tip>
<TextBlock x:Name="WindowsMaximizeGlyph"
Expand All @@ -114,7 +120,7 @@
chrome:WindowDecorationProperties.ElementRole="CloseButton"
behaviors:WindowChromeButtonBehavior.Action="Close">
<ToolTip.Tip>
<TextBlock Classes="praxis-caption-tooltip" Text="Close" />
<TextBlock Classes="praxis-compact-tooltip" Text="Close" />
</ToolTip.Tip>
<TextBlock Text="&#xE8BB;"
FontFamily="Segoe Fluent Icons, Segoe UI Symbol"
Expand Down Expand Up @@ -173,8 +179,10 @@
<Button Grid.Column="1"
Classes="praxis-create"
Height="40"
Command="{Binding AddButtonCommand}"
ToolTip.Tip="Create button">
Command="{Binding AddButtonCommand}">
<ToolTip.Tip>
<TextBlock Classes="praxis-compact-tooltip" Text="Create button" />
</ToolTip.Tip>
<Viewbox Width="30"
Height="30">
<Canvas Width="30"
Expand Down
40 changes: 40 additions & 0 deletions Praxis.Tests/AvaloniaShellSourceGuardTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,46 @@ public void MainWindow_RestoresCommandFocusOnWindowActivation()
Assert.Contains("UiTimingPolicy.WindowsFocusRestorePrimaryDelay", behavior, StringComparison.Ordinal);
}

[Fact]
public void AvaloniaTheme_EmbedsInterForWindowsAndAlignsTopBarInteractionVisuals()
{
var project = ReadRepositoryFile("Praxis.Avalonia", "Praxis.Avalonia.csproj");
var theme = ReadRepositoryFile("Praxis.Avalonia", "Themes", "PseudoAcrylicTheme.axaml");
var xaml = ReadRepositoryFile("Praxis.Avalonia", "Views", "MainWindow.axaml");
var fontsPath = Path.Combine(ResolveRepositoryRoot(), "Praxis.Avalonia", "Assets", "Fonts");

Assert.Contains("<AvaloniaResource Include=\"Assets\\**\" />", project, StringComparison.Ordinal);
Assert.Contains("<FontFamily x:Key=\"PraxisWindowsUiFontFamily\">avares://Praxis/Assets/Fonts#Inter, Yu Gothic UI, Meiryo</FontFamily>", theme, StringComparison.Ordinal);
Assert.Contains(
"""
<Style Selector="Window.praxis-main">
<Setter Property="Background" Value="Transparent" />
<Setter Property="FontFamily" Value="Inter, Hiragino Sans, Yu Gothic, Meiryo, Segoe UI, -apple-system, BlinkMacSystemFont" />
<Setter Property="Foreground" Value="{StaticResource PraxisTextPrimaryBrush}" />
</Style>
""",
theme,
StringComparison.Ordinal);
Assert.Contains(
"""
<Style Selector="Window.praxis-main.windows">
<Setter Property="FontFamily" Value="{StaticResource PraxisWindowsUiFontFamily}" />
</Style>
""",
theme,
StringComparison.Ordinal);
Assert.Contains("<Style Selector=\"Button.praxis-create:focus\">", theme, StringComparison.Ordinal);
Assert.Contains("<Setter Property=\"BorderBrush\" Value=\"#A0A0A0\" />", theme, StringComparison.Ordinal);
Assert.Contains("<Style Selector=\"TextBlock.praxis-compact-tooltip\">", theme, StringComparison.Ordinal);
Assert.Contains("<Setter Property=\"Margin\" Value=\"0,1,0,0\" />", theme, StringComparison.Ordinal);
Assert.Contains("Classes=\"praxis-compact-tooltip\" Text=\"Create button\"", xaml, StringComparison.Ordinal);
Assert.DoesNotContain("Segoe UI Variable Text", theme, StringComparison.Ordinal);
Assert.True(File.Exists(Path.Combine(fontsPath, "Inter-Regular.ttf")));
Assert.True(File.Exists(Path.Combine(fontsPath, "Inter-SemiBold.ttf")));
Assert.True(File.Exists(Path.Combine(fontsPath, "Inter-Bold.ttf")));
Assert.True(File.Exists(Path.Combine(fontsPath, "LICENSE.txt")));
}

[Fact]
public void AvaloniaProject_EmbedsIconAssets()
{
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@
![Platform](https://img.shields.io/badge/Platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgrey)
![License](https://img.shields.io/badge/License-MIT-blue)

License: MIT (see [`LICENSE`](LICENSE)).
Source code: MIT (see [`LICENSE`](LICENSE)). Bundled Inter font files: SIL Open Font License 1.1 (see [`Praxis.Avalonia/Assets/Fonts/LICENSE.txt`](Praxis.Avalonia/Assets/Fonts/LICENSE.txt)).

## Overview
Praxis v2 is an Avalonia desktop launcher migration. The app uses strict-MVVM Core models with model-owned launcher button state, a pseudo-acrylic frameless resizable shell, command execution with suggestions, search, free-positioned launcher buttons on a dynamically sized placement surface, a persisted Dock promoted only from placement-area launcher-button clicks, a model-driven status bar, SQLite-backed launcher persistence, launch logging, button editing, drag/multi-select operations, file-backed launcher-button sync, and basic desktop command/default-app execution. When the Praxis window becomes active, the Command field is focused automatically so command execution is ready immediately.

On Windows, the shell embeds the Inter typeface for consistent Latin UI typography and falls back to `Yu Gothic UI` or `Meiryo` for characters Inter does not cover. macOS and Linux keep their platform font stacks.

The former .NET MAUI app project has been removed. Existing v1 launcher databases remain readable through the shared data layer: v2 uses the existing `praxis.db3` file when present, also accepts an existing `praxis.db`, and migrates launcher-button schema to version 5. Theme mode switching is available in the Avalonia shell; persisted theme settings and runtime error-log writes remain migration follow-up work.

## Supported Platforms
Expand Down Expand Up @@ -70,11 +72,13 @@ dotnet build Praxis.Avalonia/Praxis.Avalonia.csproj -c Release --nologo

> **[English / 英語はこちら](#praxis)**

ライセンス: MIT([`LICENSE`](LICENSE) を参照)。
ソースコード: MIT([`LICENSE`](LICENSE) を参照)。同梱する Inter font files: SIL Open Font License 1.1([`Praxis.Avalonia/Assets/Fonts/LICENSE.txt`](Praxis.Avalonia/Assets/Fonts/LICENSE.txt) を参照)。

## 概要
Praxis v2 は Avalonia へのデスクトップランチャー移行版です。strict MVVM の Core model がランチャーボタン状態を所有し、擬似アクリル風のリサイズ可能なフレームレス shell、候補付き Command 実行、Search、動的に広がる配置面上の自由配置ボタン、配置領域のランチャーボタンクリックからだけ昇格する永続化 Dock、Model 駆動のステータスバー、SQLite 永続化、launch log、ボタン編集、ドラッグ/複数選択操作、ファイルベースの launcher-button 同期、基本的なデスクトップコマンド/既定アプリ起動を持ちます。Praxis ウィンドウがアクティブになると Command 欄へ自動フォーカスし、すぐに Command 実行できる状態にします。

Windows では英数字 UI の typography を揃えるため、shell に Inter typeface を埋め込みます。Inter が持たない文字は `Yu Gothic UI` または `Meiryo` へ fallback します。macOS と Linux はそれぞれの platform font stack を維持します。

旧 .NET MAUI アプリプロジェクトは削除済みです。既存 v1 の launcher DB は共有 data layer から読み込めます。v2 は既存の `praxis.db3` を優先し、既存の `praxis.db` も受け入れ、launcher button schema を version 5 へ移行します。Avalonia shell ではテーマモード切り替えを利用できます。テーマ設定の永続化と runtime error-log 書き込みは今後の移行対象です。

## 対応プラットフォーム
Expand Down
Loading