Commit graph

413 commits

Author SHA1 Message Date
danieleades
8e99406a8b
chore: fixing linter warnings 2023-11-28 20:02:08 +01:00
Ashley Wulber
57f4abb8a0 refactor: make the single-instance feature additive 2023-11-21 21:25:10 +01:00
Michael Aaron Murphy
2c445d820f feat(image_button): add optional removable button overlay 2023-11-15 16:50:15 +01:00
Michael Aaron Murphy
43c78fa0df feat(examples): add image button example 2023-11-03 16:41:31 +01:00
Michael Aaron Murphy
7b2b8952c6
chore: update design demo 2023-10-24 19:52:44 +02:00
Michael Aaron Murphy
ca7c17ce21 feat(widget): add dropdown widget as pick_list replacement
The Dropdown widget is based on the PickList widget from iced.
2023-10-24 19:45:21 +02:00
Ashley Wulber
7cc791a3f5
feat: add support for dark / light mode switching (#178)
* feat: add support for dark / light mode switching and simultaneouscustom light / dark mode themes

* refactor(color-picker): optional initial color and fallback color

* refactor: used FixedPortion for layout of the settings item

This makes sure that the control always has at least the specified portion of the available space

* refactor: make all members of the ThemeBuilder public

* refactor: add and update palette colors

* fix(theme): typo and derive PartialEq for ThemeBuilder

* fix: update color picker usage

* feat: add more variables to the theme

* fix: radius on headerbar

* fix: Theme CosmicConfigEntry impl

* chore: specify rev of taffy

* fix: theme CosmicConfigEntry missing variables

* fix: apply theme type when theme mode changes

* wip: add plus icon to empty color picker button

* chore: fix rev and imports

* refactor(color-picker): allow custom size for the icon

* refactor(color_picker): make color_button public

* update iced
2023-10-16 16:19:04 -04:00
Michael Aaron Murphy
a91deacff5
chore(examples): update design-demo 2023-10-12 17:10:56 +02:00
Michael Aaron Murphy
395a90891d refactor!(app): rename set_title to set_window_title 2023-10-12 16:37:38 +02:00
Jeremy Soller
f0005165f3 cosmic-config: Add new_state constructor for storing state 2023-10-09 09:27:03 -06:00
Ashley Wulber
9ddadd330f fix: applet button styles 2023-10-02 10:59:27 -04:00
Ashley Wulber
70077ca985 feat: color picker 2023-10-02 10:24:43 -04:00
Ashley Wulber
3829178c88 refactor: allow text input on_clear for more than just search_input 2023-09-21 15:25:13 -04:00
Michael Aaron Murphy
8f7b400143
refactor(applet): move applet module to crate root 2023-09-18 07:45:11 +02:00
Eduardo Flores
69cd9a3bfa
fix(applet): button & icon API refactor w/ applet example 2023-09-18 02:35:50 +02:00
Michael Aaron Murphy
f2b14d18eb chore(examples): migrated cosmic-design-demo 2023-09-15 20:48:25 +02:00
Michael Aaron Murphy
baad15033c chore(examples): merged cosmic-time changes 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
69b41c0821 fix(debian): justfile paths 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
ef23cb328f chore(examples): cosmic-time update 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
7f3013e509 chore(readme): instructions for running examples 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
5cd9d74189 feat(design-demo): debian packaging 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
37d5dd8b65 feat(examples): improve design demo and merge cosmic-sctk example 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
0eba498708 chore(examples): icon API update 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
4e4eeaac12 feat!(widget): rewrite button & icon widget APIs 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
b805fc894c feat(examples): add design demo 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
6927220325 fix(app): draggable windows on X11 systems using winit 2023-08-28 18:11:19 +02:00
Ashley Wulber
6457481ae5 fix: text input layout & cargo fmt 2023-08-24 15:44:29 -04:00
Ashley Wulber
d35dfad486 fix: search input border style 2023-08-24 10:39:43 -04:00
Ashley Wulber
db8e791b87
Text input (#143)
* update: iced 0.10.0

* wip: text input

* wip: text inputs with icons and buttons

* wip: improve text input

* refactor: text input styling

* chore: add scale factor

* chore(text_input): add winit example and do some cleanup
2023-08-23 10:59:26 -04:00
Ashley Wulber
12da20d184 chore: update cosmic-time 2023-08-21 15:47:01 -04:00
Ashley Wulber
69da283aeb update iced 2023-08-21 15:47:01 -04:00
Michael Aaron Murphy
a8ce524baa refactor: combine open and save dialogs 2023-08-16 16:59:15 +02:00
Michael Aaron Murphy
1705b6fe27 feat(dialog): XDG portal integrations for open and save dialogs 2023-08-16 16:59:15 +02:00
Ashley Wulber
ff83f893ef refactor: updates for buttons and checkboxes 2023-08-14 12:31:16 -04:00
Ashley Wulber
6c57e04e36 refactor: introduce thread local THEME variable and distinguish between custom and system theme settings 2023-08-14 12:31:16 -04:00
Ashley Wulber
85f816f35b fix: example 2023-08-14 12:31:16 -04:00
Michael Murphy
a223b60a0c
feat!: implement Application API 2023-08-02 11:54:07 +02:00
Ashley Wulber
e24465ba37 update(example): add button to cards and update cosmic-time 2023-07-28 14:01:14 -07:00
Ashley Wulber
785861a630 example: update cosmic-time and add extra row to each card 2023-07-28 14:01:14 -07:00
Ashley Wulber
5745ed3ffe chore: examples of animated card usage 2023-07-28 14:01:14 -07:00
Ashley Wulber
598bfaa611 feat: icon default fallbacks 2023-07-07 16:58:21 -04:00
Ashley Wulber
b5a5e01de4 update iced 2023-06-27 13:05:57 -04:00
Ashley Wulber
bf456a08ee feat: animated togglers in the cosmic_sctk example 2023-06-15 20:38:16 +02:00
Ashley Wulber
850968715c udpate iced to use latest rebase 2023-06-15 20:38:16 +02:00
Michael Aaron Murphy
31f7e97d5b fix: incorrect font weights, sizes, line heights 2023-05-31 00:08:56 +02:00
Ashley Wulber
e056e8c830
Cosmic advanced text (#103)
* wip: update to use cosmic-advanced-text

* use cosmic-advanced-text branch of iced

* fix: line height and spacing for segmented button and update to get svg fix

* fix: spin button styling & spacing

* update iced to fix segmented button border radius

* feat: example improvements

* feat: helper for loading fonts

* feat: add focus style to button

* fix: slider height and iced fixed

* feat: hash icon width and height

* cleanup

* update ci

* refactor: always use lazy feature of iced

* update iced

* update iced

* cleanup & update iced

* update iced: new slider & tiny-skia quad updates

* update iced: fixes for tiny-skia quad rendering with edge case border radius

* re-export iced_runtime & iced_widget

* merge master

* udpate iced

* update iced

* update iced

* update iced

* fix: make rectangle_tracker subscription only return update if there is some

* feat: derive macro for loading a cosmic-config

* feat (cosmic-config): iced subscription

* fix (example): update to rectangle tracker subscription

* fix (cosmic-config)

* refactor(cosmic-config-derive): add support for types with generic parameters

* fix (cosmic-config): feature gate updates for subscription helpers

* feat: support for custom & system themes + move cosmic-theme to libcosmic

* feat: sorta hacky way of creating header bars for libcosmic + update iced to get support for resizable windows in iced-sctk

* update iced

* update and reexport sctk

* fix: applet border radius

* feat (cosmic-theme): add id and name methods

* fix(cosmic-theme): reexport palette from cosmic-theme

* fix(cosmic-config-derive): allow use with reexported cosmic-config

* feat: update iced with fix and refactor applet env vars

* update iced
2023-05-30 12:03:15 -04:00
Ian Douglas Scott
b85c504d72
theme: Use boxed functions instead fn pointers (#99)
This is more general, and necessary if the custom theming is dynamically
generated.

Iced's builtin theme also uses `Box`ed `Fn`, or `Rc` where clone is
required, so this seems reasonable.

Only `Text` is left using `fn`, since it needs to be `Copy`. Hopefully
that can be changed in Iced at some point.

`::custom` methods are added to make these variants a little more
convenient to construct. This replaces a couple `From` implementations,
which are potentially problematic with a generic.
2023-04-28 16:04:57 -07:00
Ashley Wulber
2a5d4c3467 update iced: includes DnD support for iced-sctk 2023-04-04 18:15:41 -04:00
Jeremy Soller
e3ec7e3b7d WIP: Config API 2023-03-10 09:39:33 -07:00
Ashley Wulber
b510b89b98 fix(entry): entry bg alpha typo & border radius fixes 2023-03-03 11:28:32 -05:00