Skip to content

Instantly share code, notes, and snippets.

@tfuxu
tfuxu / quantize.cpp
Created December 9, 2023 20:26
Minimal Magick++ quantize code
#include <Magick++.h>
#include <iostream>
using namespace std;
using namespace Magick;
int main(int argc, char **argv)
{
InitializeMagick(*argv);
@tfuxu
tfuxu / wizard_window.blp
Created March 13, 2023 22:21
Gradience generic Wizard Window prototype (with prefs from work-in-progress Adwaita for Steam Theme Engine)
using Gtk 4.0;
using Adw 1;
template GradienceWizardWindow : Adw.Window {
title: _("Wizard Window");
default-width: 600;
default-height: 600;
modal: true;
resizable: true;
deletable: true;
ERROR CSSUnknownRule: No ending ";" or "}" found: '@define-color headerbar_backdrop_color @window_bg_color;'
ERROR FUNCTION: Missing token for production Choice(Sequence(Choice(ColorValue, Dimension, URIValue, Value, CSSCalc, variable, function), Sequence(comma, Choice(ColorValue, Dimension, URIValue, Value, CSSCalc, variable, function)), end FUNC ")"), end FUNC ")"): ('ATKEYWORD', '@headerbar_bg_color', 62, 66)
ERROR PropertyValue: No match: ('CHAR', ')', 62, 89)
ERROR PropertyValue: Unknown syntax or no value: 0 3px 12px 1px rgba(0, 0, 0, 0.7), 0 0 0 1px shade(@headerbar_bg_color,1.3)
ERROR CSSStyleDeclaration: Syntax Error in Property: box-shadow: 0 3px 12px 1px rgba(0, 0, 0, 0.7), 0 0 0 1px shade(@headerbar_bg_color,1.3)
ERROR FUNCTION: Missing token for production Choice(Sequence(Choice(ColorValue, Dimension, URIValue, Value, CSSCalc, variable, function), Sequence(comma, Choice(ColorValue, Dimension, URIValue, Value, CSSCalc, variable, function)), end FUNC ")"), end FUNC ")"): ('ATKEYWORD',
From 1d58f7292f500999b7c8c5efb2f602371d972704 Mon Sep 17 00:00:00 2001
From: tfuxu <73042332+tfuxu@users.noreply.github.com>
Date: Tue, 11 Oct 2022 20:34:04 +0200
Subject: [PATCH] fix: Use different variables for display name and filename
---
gradience/main.py | 4 ++--
gradience/utils/preset.py | 29 +++++++++++++++++------------
2 files changed, 19 insertions(+), 14 deletions(-)
flatpak-builder --arch=x86_64 --ccache --force-clean --disable-updates --disable-download --state-dir /home/tfuxc/.cache/gnome-builder/flatpak-builder --stop-at=gradience /home/tfuxc/.cache/gnome-builder/projects/AdwCustomizer/flatpak/staging/x86_64-main /home/tfuxc/Documents/AdwCustomizer/build-aux/flatpak/com.github.GradienceTeam.Gradience.Devel.json
Emptying app dir '/home/tfuxc/.cache/gnome-builder/projects/AdwCustomizer/flatpak/staging/x86_64-main'
Starting build of com.github.GradienceTeam.Gradience.Devel
Cache hit for python3-anyascii, skipping build
Cache hit for python3-material-color-utilities-python, skipping build
Cache hit for python3-urllib3, skipping build
Cache hit for python3-svglib, skipping build
Cache hit for pypi-dependencies, skipping build
Cache miss, checking out last cache hit
========================================================================
@tfuxu
tfuxu / stylesheet.css
Last active July 31, 2022 22:25
Custom stylesheet for improved-workspace-indicator
.panel-workspace-indicator {
padding: 0 6px;
}
.panel-workspace-indicator-box {
padding: 2px 0;
}
.panel-workspace-indicator-box .workspace {
width: 40px;
@tfuxu
tfuxu / tkl-layout.json
Created January 2, 2022 02:45
Tenkeyless (TKL) KLE raw data
[
[
{
"a": 5
},
"Esc",
{
"x": 1
},
"F1",