Fix: An issue that would cause Matugen colors to not apply. (#929)
* Eslint updates * linter fixes * Type fixes * More type fixes * Fix isvis * More type fixes * Type Fixes * Consolidate logic to manage options * Linter fixes * Package lock update * Update configs * Version checker * Debug pipeline * Package lock update * Update ci * Strict check * Revert ci * Eslint * Remove rule since it causes issues in CI * Actual matugen fix
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
import { GtkWidget } from 'src/lib/types/widget.js';
|
||||
import { Gdk } from 'astal/gtk3';
|
||||
import { ThrottleFn } from '../types/utils';
|
||||
import { ThrottleFn } from '../types/utils.types';
|
||||
import { GtkWidget } from '../types/widget.types';
|
||||
|
||||
/**
|
||||
* Connects a primary click handler and returns a disconnect function.
|
||||
*/
|
||||
export function onPrimaryClick(widget: GtkWidget, handler: (self: GtkWidget, event: Gdk.Event) => void): () => void {
|
||||
export function onPrimaryClick(
|
||||
widget: GtkWidget,
|
||||
handler: (self: GtkWidget, event: Gdk.Event) => void,
|
||||
): () => void {
|
||||
const id = widget.connect('button-press-event', (self: GtkWidget, event: Gdk.Event) => {
|
||||
const eventButton = event.get_button()[1];
|
||||
if (eventButton === Gdk.BUTTON_PRIMARY) {
|
||||
@@ -18,7 +21,10 @@ export function onPrimaryClick(widget: GtkWidget, handler: (self: GtkWidget, eve
|
||||
/**
|
||||
* Connects a secondary click handler and returns a disconnect function.
|
||||
*/
|
||||
export function onSecondaryClick(widget: GtkWidget, handler: (self: GtkWidget, event: Gdk.Event) => void): () => void {
|
||||
export function onSecondaryClick(
|
||||
widget: GtkWidget,
|
||||
handler: (self: GtkWidget, event: Gdk.Event) => void,
|
||||
): () => void {
|
||||
const id = widget.connect('button-press-event', (self: GtkWidget, event: Gdk.Event) => {
|
||||
const eventButton = event.get_button()[1];
|
||||
if (eventButton === Gdk.BUTTON_SECONDARY) {
|
||||
@@ -31,7 +37,10 @@ export function onSecondaryClick(widget: GtkWidget, handler: (self: GtkWidget, e
|
||||
/**
|
||||
* Connects a middle click handler and returns a disconnect function.
|
||||
*/
|
||||
export function onMiddleClick(widget: GtkWidget, handler: (self: GtkWidget, event: Gdk.Event) => void): () => void {
|
||||
export function onMiddleClick(
|
||||
widget: GtkWidget,
|
||||
handler: (self: GtkWidget, event: Gdk.Event) => void,
|
||||
): () => void {
|
||||
const id = widget.connect('button-press-event', (self: GtkWidget, event: Gdk.Event) => {
|
||||
const eventButton = event.get_button()[1];
|
||||
if (eventButton === Gdk.BUTTON_MIDDLE) {
|
||||
|
||||
Reference in New Issue
Block a user