Compare commits

...
3 Commits
Author SHA1 Message Date
lwouis adf5595203 refactor: fix inkscape bin path 2024-02-08 16:46:18 +01:00
lwouis d512394d39 refactor: apply compiler hints 2024-02-08 16:46:18 +01:00
lwouis 3ab7c5cd9e docs: improve website performance, and lazy-load images 2024-02-08 16:46:18 +01:00
7 changed files with 10 additions and 11 deletions

No files matched your search

+5 -5
View File
@@ -4,7 +4,7 @@ permalink: /
# Introduction
[![Screenshot](public/demo/frontpage.jpg)](public/demo/frontpage.jpg)
[<img src="public/demo/frontpage.jpg" alt="Screenshot" width="1440" height="900" style="width:100%; height:auto;" />](public/demo/frontpage.jpg)
**AltTab** brings the power of Windows’s "alt-tab" window switcher to macOS.
@@ -51,9 +51,9 @@ AltTab is available in: Bahasa Indonesia, Català, Dansk, Deutsch, Eesti keel, E
Change the shortcut keys, switch to a Windows theme and more, using the Preferences window:
| [![Screenshot1](public/demo/preferences-appearance.jpg)](public/demo/preferences-appearance.jpg) | [![Screenshot 2](public/demo/preferences-controls.jpg)](public/demo/preferences-controls.jpg) |
| [![Screenshot3](public/demo/preferences-blacklist.jpg)](public/demo/preferences-blacklist.jpg) | [![Screenshot 4](public/demo/preferences-policies.jpg)](public/demo/preferences-policies.jpg) |
| [![Screenshot5](public/demo/preferences-general.jpg)](public/demo/preferences-general.jpg) | |
| [<img loading="lazy" src="public/demo/preferences-appearance.jpg" alt="Screenshot1" width="1064" height="1280" style="width:100%; height:auto;" />](public/demo/preferences-appearance.jpg) | [<img loading="lazy" src="public/demo/preferences-controls.jpg" alt="Screenshot 2" width="1081" height="1280" style="width:100%; height:auto;" />](public/demo/preferences-controls.jpg) |
| [<img loading="lazy" src="public/demo/preferences-blacklist.jpg" alt="Screenshot3" width="1280" height="1161" style="width:100%; height:auto;" />](public/demo/preferences-blacklist.jpg) | [<img loading="lazy" src="public/demo/preferences-policies.jpg" alt="Screenshot 4" width="1280" height="786" style="width:100%; height:auto;" />](public/demo/preferences-policies.jpg) |
| [<img loading="lazy" src="public/demo/preferences-general.jpg" alt="Screenshot5" width="1280" height="640" style="width:100%; height:auto;" />](public/demo/preferences-general.jpg) | |
## Alternatives
@@ -76,7 +76,7 @@ There are also related apps which don’t really overlap in functionality, but t
| 1 row | 2 rows | Windows theme |
|-------|---------|-------|
| [![Screenshot](public/demo/1-row.jpg)](public/demo/1-row.jpg) | [![Screenshot](public/demo/2-rows.jpg)](public/demo/2-rows.jpg) | [![Screenshot](public/demo/windows-theme.jpg)](public/demo/windows-theme.jpg) |
| [<img loading="lazy" src="public/demo/1-row.jpg" alt="Screenshot" width="1440" height="900" style="width:100%; height:auto;" />](public/demo/1-row.jpg) | [<img loading="lazy" src="public/demo/2-rows.jpg" alt="Screenshot" width="1440" height="900" style="width:100%; height:auto;" />](public/demo/2-rows.jpg) | [<img loading="lazy" src="public/demo/windows-theme.jpg" alt="Screenshot" width="1440" height="900" style="width:100%; height:auto;" />](public/demo/windows-theme.jpg) |
## License
+2 -1
View File
@@ -139,7 +139,8 @@ nav {
word-break: break-word;
img {
max-width: 100%;
width: 100%;
height: auto;
}
code, pre, tt {
+1 -2
View File
@@ -37,8 +37,7 @@
<header>
<div>
<a href="{{ site.baseurl }}"><img src="{{ site.baseurl }}public/android-chrome-256x256.png" width="100"
height="100"/></a>
<a href="{{ site.baseurl }}"><img src="{{ site.baseurl }}public/demo/logo.png" width="100" height="100"/></a>
<div>
<h1><a href="{{ site.baseurl }}">{{ site.title }}</a></h1>
<p>{{ site.github.project_tagline }}</p>
Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

+1 -1
View File
@@ -15,7 +15,7 @@ function convert() {
# -resize 24x24 \
# "resources/icons/window-controls/$1.svg" \
# "resources/icons/window-controls/$1-magik.png"
/Applications/Inkscape.app/Contents/Resources/bin/inkscape \
/Applications/Inkscape.app/Contents/MacOS/inkscape \
-z \
-w "$((size * 2))" -h "$((size * 2))" \
"$currentDir/resources/icons/window-controls/$1.svg" \
-1
View File
@@ -3,7 +3,6 @@ import Foundation
class MissionControl {
static func isActive() -> Bool {
// when Mission Control is active, the Dock process spawns some windows. We observe this side-effect and infer
var missionControlHint = false
for window in CGWindow.windows(.optionOnScreenOnly) {
// ownerName == "Dock" && title == nil is a sign that Mission Control may be active
if window.ownerName() == "Dock" && window.title() == nil
+1 -1
View File
@@ -318,7 +318,7 @@ class Windows {
}
func sortByAppNameThenWindowTitle(_ w1: Window, _ w2: Window) -> ComparisonResult {
var order = w1.application.runningApplication.localizedName.localizedStandardCompare(w2.application.runningApplication.localizedName)
let order = w1.application.runningApplication.localizedName.localizedStandardCompare(w2.application.runningApplication.localizedName)
if order == .orderedSame {
return w1.title.localizedStandardCompare(w2.title)
}