This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ids] | |
* | |
[main] | |
meta = overload(command, layer(meta)) | |
control = layer(emacs) | |
leftalt = layer(symbol) | |
[command:C] | |
c = C-insert |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Created by e8d08f on 21/12/2024, v0.1 | |
* | |
* This file is licensed under the MIT License. | |
* Read the end of this file for the full license. | |
*/ | |
/// TYPOGRAPHY SETTINGS | |
#let _text = read("./raw.txt").trim() // Target text to typeset |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct EffectView: NSViewRepresentable { | |
@Binding var window: NSWindow? | |
let material: NSVisualEffectView.Material | |
let blendingMode: NSVisualEffectView.BlendingMode | |
let followsWindowActiveState: Bool | |
func makeNSView(context: Context) -> NSVisualEffectView { | |
let view = NSVisualEffectView() | |
view.material = material | |
view.blendingMode = blendingMode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AppKit | |
import SwiftUI | |
enum Metrics { | |
static let titlebarHeight: CGFloat = 28 | |
static let windowLength: CGFloat = 204 | |
static let mainHeight: CGFloat = 135 | |
static var drawerHeight: CGFloat { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AppKit | |
class AppDelegate: NSObject, NSApplicationDelegate, NSWindowDelegate { | |
var window: NSWindow! | |
private func setStandardButtons() { | |
if let titlebar = window.standardWindowButton(.closeButton)?.superview, | |
let titlebarContainer = titlebar.superview { | |
let subviews = titlebar.subviews + titlebarContainer.subviews |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@use "sass:math" | |
$fs: 21px // Font size | |
$mplr: 1.667 // Line Multiplier 間距因子 | |
$lcct: 32 // Line character count 列粒 | |
$lgth: $lcct * 1rem // Line length 列長 | |
$lmch: $mplr * 1rem // Line march 列間距 | |
$lsid: calc(($mplr - 1) / 2) * 1rem // Line side | |
$lacs: (2 * $mplr - 1) * 1rem // Line across |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pcs () { | |
basename=$1 | |
pyftsubset $1 --unicodes='203c,2047-2049,3001,3002,301d,301f,ff01,ff0c,ff1a,ff1b,ff1f,3008-3011,3014-301B,30FB,ff08,ff09' --layout-features='vert,vrt2' | |
east-asian-spacing ${basename%.*}.subset.${basename##*.} -o ${basename%.*}.pcs.${basename##*.} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { margin: 0; padding: 0; box-sizing: border-box; } | |
:root { | |
--foreground-colour: #21272e; | |
--background-colour: #fdfdfc; | |
--a-colour: #438fa2; | |
/* Typography */ | |
--font-size: 18px; | |
--line-em: 32; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Cocoa | |
import SwiftUI | |
@NSApplicationMain | |
class AppDelegate: NSObject, NSApplicationDelegate { | |
var popover: NSPopover! | |
var statusItem: NSStatusItem! | |
var menu: NSMenu! | |
func applicationDidFinishLaunching(_ aNotification: Notification) { |