Commit graph

151 commits

Author SHA1 Message Date
Michael Aaron Murphy
9dbc1be269 refactor(widget): improvements to button and icon widgets 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
1e3c44865a feat(widget): import more widgets from iced 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
51ac288eed feat(widget): create list-styled containers with list::container() 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
9963629a4f fix(headerbar): window being dragged on click 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
9eb55ce893 feat(widget): add tooltip module 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
87e7567b7b feat(widget): add divider::vertical variants 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
6e1f00295b feat(widget): add divider::horizontal::default() variant 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
4564c36c83 chore(widget): use Row type in settings::item 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
03a5c929fd refactor(widget): create alias for Row type 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
6402bcfe26 chore(widget): use Column type in settings::view_column 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
524f3abb05 refactor(widget): create alias for Column type 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
b5a6f81057 chore(widget): use push_maybe in settings::section 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
26777464c5 feat(widget): add functions for columns and rows 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
e9035a9582 chore(widget): add more iced widget re-exports 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
6383ecc0cb chore(widget): text_input does not need to be wayland-only 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
c45556d8e3 feat(widget): add typography functions to text module 2023-09-14 01:38:56 +02:00
Ashley Wulber
984d545546 fix: remove conflicting iced text_input from reexports 2023-08-29 14:59:37 -04:00
Ashley Wulber
6a07e341ca chore: custom text input style 2023-08-29 14:02:56 -04:00
Michael Aaron Murphy
2e3d9af720 chore(widget): re-export missing iced widgets 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
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
a5d3814fff fix(widget/header_bar): add padding between end elements and window controls 2023-08-16 16:59:15 +02:00
Michael Aaron Murphy
e3f3dc2e82 fix(widget/button: padding causing misaligned text in button 2023-08-16 16:59:15 +02:00
Ashley Wulber
20a5227eca refactor: add button components to theme because they have different overlays than others when they are hovered or pressed 2023-08-14 12:31:16 -04:00
Ashley Wulber
f8c25096fd refactor: update existing buttons 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
ab88a5b59f feat: animated image widget 2023-07-26 18:11:19 -04:00
Ashley Wulber
f17d52f37f card widget 2023-07-20 11:11:50 -04:00
Ashley Wulber
598bfaa611 feat: icon default fallbacks 2023-07-07 16:58:21 -04:00
Michael Aaron Murphy
b0db23a169 perf(flexrow): provide reusable vec for storing elements 2023-06-26 17:00:50 +02:00
Michael Aaron Murphy
e3f30a1b5c feat(widget): add FlexRow widget 2023-06-24 12:30:52 +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
98ec1bbd48
Add a Popover widget, that shows a widget in an overlay (#100)
This serves a similar purpose to `GtkPopover`. It takes two widgets, one
to show normally and one to show in an overlay.

This should basically work, though more options could be added here.
2023-05-11 13:29:05 -07: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
Ian Douglas Scott
c878e24465 Fix build on Windows/non-Unix
We'll need libcosmic to work on Windows and macOS if we want to use it
in the Keyboard Configurator.

`freedesktop-icons` doesn't seem to build on Windows, so only use it
on Unix systems. It does seem to build on macOS, so leave it as a
dependency there. A good solution for icon bundling on macOS/Windows will
need to be figured out at some point.
2023-04-25 06:20:20 -06: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
cbb21932d8 feat(theme): use cosmic-theme 2023-02-28 12:26:38 -07:00
Ashley Wulber
becdbb6eb3 wip: use CosmicContainer 2023-02-28 12:26:38 -07:00
Ashley Wulber
b0d6c29ab1 cleanup 2023-02-28 12:26:38 -07:00
Ashley Wulber
ccca0e5193 fix(applet): appearance 2023-02-28 12:26:38 -07:00
Ashley Wulber
a449a52dee wip(theme): use transparent overlays for component colors where possible 2023-02-28 12:26:38 -07:00
Michael Aaron Murphy
8232e1d249
fix(settings): wrong title text size for control 2023-02-16 06:22:30 +01:00
Michael Aaron Murphy
eb519782ac improv(segmented-button): extra padding for close icon 2023-02-14 14:56:29 -07:00