Skip to content

Commit

Permalink
Icon should be a value-component. Idk why it wasn't.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Sep 9, 2024
1 parent ab6832a commit af8e94e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/base.lisp
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
(in-package #:org.shirakumo.alloy)

(defclass icon (component)
())

(defclass value-component (component)
((value-function :initarg :value-function :initform 'value :reader value-function)))

Expand Down Expand Up @@ -63,3 +60,8 @@

(defmethod enter ((string string) (layout layout) &rest args)
(apply #'enter (make-instance 'label* :value string) layout args))

(defclass icon (value-component)
())

(defclass icon* (icon direct-value-component) ())

0 comments on commit af8e94e

Please sign in to comment.