Commit graph

101 commits

Author SHA1 Message Date
Ashley Wulber
bf456a08ee feat: animated togglers in the cosmic_sctk example 2023-06-15 20:38:16 +02:00
Ashley Wulber
78a3a1f29a fix CI 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
Ashley Wulber
a8a2e4ad26 feat: theme helper methods 2023-06-12 12:16:31 -04:00
Brock
5765053ad7
Expose internal iced crates for cosmic-time (#110)
This allows cosmic-time to use all imports via libcosmic, so the
versions of iced will not collide.
2023-06-01 16:12:57 -06:00
Ashley Wulber
ce713d9da7 refactor: move applet helpers to cosmic-applets repo 2023-05-31 10:33:46 -04:00
Ashley Wulber
f06a81ccf9 chore: update deps 2023-05-30 14:39:22 -04: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
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
c466790903 update sctk 2023-04-05 11:20:18 -04:00
Jeremy Soller
e3ec7e3b7d WIP: Config API 2023-03-10 09:39:33 -07:00
Ian Douglas Scott
172d8ae511
Update iced and sctk (#87) 2023-03-02 08:40:51 -08:00
Ashley Wulber
8d968f931d fix: use master branch for 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
a449a52dee wip(theme): use transparent overlays for component colors where possible 2023-02-28 12:26:38 -07:00
Michael Aaron Murphy
046dd49438 feat(spin-button): support fraction::Decimal as model input 2023-01-19 19:58:31 +01:00
Ashley Wulber
2ce171e5ad feat: dyrend 2023-01-19 08:28:37 -07:00
Ian Douglas Scott
cd19bbf37a Re-export iced_sctk when build with wayland feature 2023-01-18 16:59:10 -07:00
Ian Douglas Scott
db2e6c236d When built with tokio, provide a SingleThreadExecutor
An application can (optionally) use this to spawn a single tokio thread
instead of one per processor thread.
2023-01-18 16:59:10 -07:00
Ashley Wulber
1554a1ee03 chore: update iced 2023-01-06 09:47:47 -07:00
Victoria Brekenfeld
a736b361a1 ci: add CI for different feature combinations 2023-01-04 05:46:24 +01:00
Victoria Brekenfeld
cb2b0f7b9a
chore: Do not enable iced/tokio features unconditionally 2023-01-03 22:48:53 +01:00
Michael Aaron Murphy
444e389496 refactor!: separate horizontal and vertical segmented button widgets
- Removes the orientation enum in favor of two separate widgets
- Implements the spacing attribute for both widgets
- Demo is updated to display spaced variants of the widgets
2023-01-03 20:29:50 +01:00
Ashley Wulber
3af1da6332
chore(iced): update sctk 2023-01-03 17:16:18 +01:00
Michael Aaron Murphy
ad0443af3f feat(segmented-button): Vertical orientation functionality 2023-01-03 00:12:28 -05:00
Michael Aaron Murphy
e97c258422 feat: implement SegmentedButton widget 2022-12-28 10:19:03 -05:00
Ashley Wulber
50dc7c02cc feat: autosized surface support & update freedesktop-icons & change iced branch to master 2022-12-27 17:27:04 +01:00
Ashley Wulber
03dfc009fd
fix: Use master_jammy branch of cosmic-panel-config 2022-12-23 14:43:32 +01:00
Ashley Wulber
5fb8b9d56f specify rev in cosmic-panel-config & re-export 2022-12-21 14:40:58 -07:00
Jeremy Soller
5359ceb0f8
Update to new iced, use swbuf instead of softbuffer 2022-12-20 09:08:16 -07:00
Jeremy Soller
9607d213a1 Use iced_softbuffer in cosmic example 2022-12-19 23:56:02 +01:00
Brock
c2625ef450
chore: Add tokio fieature to iced import
This allows applets to use the `time::every` subscription
2022-12-16 01:34:05 +01:00
Ashley Wulber
9957c08a12 update: iced & some deps 2022-12-13 22:31:20 +01:00
Jeremy Soller
e6062d63cc
Make iced a submodule 2022-12-13 08:55:15 -07:00
Ashley Wulber
d888f2bd3b fix: use latest iced & commit hash for sctk 2022-12-13 08:29:37 -07:00
Michael Aaron Murphy
d13415713c
fix: Remove static-rc due to debug assertions 2022-12-06 23:11:59 +01:00
Ashley Wulber
9796fa9f15
Merge branch 'cosmic-design-system' into sctk-cosmic-design-system 2022-12-06 17:03:31 -05:00
Michael Aaron Murphy
37f978d1b3
wip: Various refactorings and improvements 2022-12-06 16:14:39 +01:00
Ashley Wulber
e87fe7056d
fix: use fork of freedesktop_icons 2022-11-22 17:51:09 -05:00
Ashley Wulber
33779b8652
wip: popup helpers 2022-11-15 23:11:48 +01:00
Ashley Wulber
9174e42099
fix: correctly align the container for popups 2022-11-14 16:58:04 +01:00
Ashley Wulber
0a0972ddc8
feature defaults 2022-11-14 16:34:00 +01:00
Ashley Wulber
00eed9c741
feat: popup container helper 2022-11-14 16:33:05 +01:00
Ashley Wulber
49f0f34270
dependencies 2022-11-14 00:38:57 +01:00
Ashley Wulber
9260ee87e1
helpers 2022-11-12 01:55:37 +01:00
Ashley Wulber
f9c47cf479
feat: working applet 2022-11-11 19:55:23 +01:00
Ashley Wulber
b1c3a52589
wip: example applet 2022-11-11 05:06:54 +01:00
Ashley Wulber
45ccc8c3d2
working examples with iced-sctk 2022-11-10 16:19:13 +01:00
Ashley Wulber
5331cfb61b
depend on iced_sctk + cosmic-design-system changes 2022-11-09 21:33:23 +01:00
Ian Douglas Scott
947532413a Include Cosmic theme in libcosmic, instead of in Iced fork
I think it's best to only include things in the Iced fork that can't be
done without forking Iced, and/or are expected to be merged upstream.
The theme doesn't seem to be either, so it fits more appropriately in
libcosmic.

That should make it easier to keep up with upstream, and it may help to
have all the Cosmic parts in one place.

Based on https://github.com/pop-os/iced commit ad9026e.
2022-10-29 11:14:49 -06:00