Commit graph

497 commits

Author SHA1 Message Date
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
Ashley Wulber
b35af255b4 refactor(container): make layer optional and export as container 2023-02-28 12:26:38 -07:00
Ashley Wulber
844aeba379 refactor(theme): make Theme Copy 2023-02-28 12:26:38 -07:00
Ashley Wulber
3245ff1b0e fix: applet & cosmic-sctk example 2023-02-28 12:26:38 -07:00
Ashley Wulber
13aa5f88cb feat(theme): export cosmic-theme & add CosmicContainers to example 2023-02-28 12:26:38 -07:00
Ashley Wulber
becdbb6eb3 wip: use CosmicContainer 2023-02-28 12:26:38 -07:00
Ashley Wulber
d981eb4c4e wip(theme): remove palette 2023-02-28 12:26:38 -07:00
Michael Aaron Murphy
eb519782ac improv(segmented-button): extra padding for close icon 2023-02-14 14:56:29 -07:00
Michael Aaron Murphy
4fa61eeafd feat(segmented-button): configurable close icons 2023-02-14 14:56:29 -07:00
Michael Aaron Murphy
cc21b9baa1 feat(executor): add cosmic::executor::Default 2023-01-30 21:57:24 +01:00
Michael Aaron Murphy
f81a06bc4a feat(keyboard-nav): add Escape and Search messages 2023-01-30 21:57:24 +01:00
Michael Aaron Murphy
f386609414 feat(examples/cosmic): scaling factor spin button 2023-01-19 19:58:31 +01:00
Michael Aaron Murphy
4269fad768 feat(examples/cosmic): Show warning widget only when clicking on its button 2023-01-19 19:58:31 +01:00
Michael Aaron Murphy
2b0227d34f feat(iconsource): additional helper methods for creating handles 2023-01-19 19:58:31 +01:00
Michael Aaron Murphy
b3d550cc5e feat!(segmented-button): improved interfaces and documentation
BREAKING CHANGE: Various type and function names have changed to reflect
themselves better in documentation. Code has been reorganized into
separate modules with a better placement in libcosmic. Most of the
functions, types, and modules now have documentation and examples.

These changes no longer require the `Model` type to define the
data/component type that it stores. The component functionality is now
optional, and it's also possible to associate many components to an item
with one component per type. This has had a side effect of simplifying a
lot of the type signatures in the implementation.

Before, to insert an item into the model, you had to define a
`SegmentedItem` and a `Component` on insert, and get back an ID for that
item. Which makes it difficult to define an item that contains only an
icon or has no components. And requires an extra insert function to
activate the item on insert.

Now, there is a flexible builder-style API for configuring
newly-inserted items in the model. So the complexity for inserting and
retrieving values from the model has decreased significantly
2023-01-19 19:58:31 +01:00
Eduardo Flores
abf8fc96c2 feat(widget): add warning widget 2023-01-17 16:49:52 +01:00
Michael Aaron Murphy
f441a364a6 feat: add keyboard_nav module with unfocus support 2023-01-10 20:49:49 +01:00