From d248645888c88eaf28ef334264bf4e41a06f6b4d Mon Sep 17 00:00:00 2001 From: kotontrion Date: Fri, 23 Aug 2024 10:52:40 +0200 Subject: fixes circular progress widgets --- core/gjs/src/jsx/jsx-runtime.ts | 4 ++-- core/gjs/src/widgets.ts | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'core/gjs/src') diff --git a/core/gjs/src/jsx/jsx-runtime.ts b/core/gjs/src/jsx/jsx-runtime.ts index 70f098f..02fd39d 100644 --- a/core/gjs/src/jsx/jsx-runtime.ts +++ b/core/gjs/src/jsx/jsx-runtime.ts @@ -35,7 +35,7 @@ const ctors = { box: Widget.Box, button: Widget.Button, centerbox: Widget.CenterBox, - // TODO: circularprogress + circularprogress: Widget.CircularProgress, drawingarea: Widget.DrawingArea, entry: Widget.Entry, eventbox: Widget.EventBox, @@ -63,7 +63,7 @@ declare global { box: Widget.BoxProps button: Widget.ButtonProps centerbox: Widget.CenterBoxProps - // TODO: circularprogress + circularprogress: Widget.CircularProgressProps, drawingarea: Widget.DrawingAreaProps entry: Widget.EntryProps eventbox: Widget.EventBoxProps diff --git a/core/gjs/src/widgets.ts b/core/gjs/src/widgets.ts index 82d4708..0a71d8b 100644 --- a/core/gjs/src/widgets.ts +++ b/core/gjs/src/widgets.ts @@ -26,7 +26,11 @@ export type CenterBox = Widget export const CenterBox = astalify(Astal.CenterBox) export type CenterBoxProps = ConstructProps -// TODO: CircularProgress +// CircularProgress +export type CircularProgress = Widget +export const CircularProgress = astalify(Astal.CircularProgress) +export type CircularProgressProps = ConstructProps + // DrawingArea export type DrawingArea = Widget -- cgit v1.2.3