No
I don't think anyone has done this yet.
You can either return cosmic::Element<Message>
, impl Into<cosmic::Element<Message>>
, or cosmic::widget::Button<Message>
with your functions.
Every widget can .into()
or .apply(Element::from)
into a cosmic::Element
.
I'd recommend using the Grid widget so that your buttons can scale with the window.
cosmic::widget::grid()
.push(widget1())
.push(widget2())
.push(widget3())
.insert_row()
.push(widget4())
.push(widget5())
.push(widget6())
.row_spacing(12)
.column_spacing(12)
.justify_content(JustifyContent::Stretch)
.width(Length::Fill)
.height(Length::Fill)
.into()
This may be fixed now, but at the same time, I'd wait a day before updating cosmic-comp because xwayland's currently broken while we need to update xwayland to the latest version for explicit sync support.
That's very strange. Did you update today?
What report are you referring to?
The design is finished for Alpha 1, but there is likely to be future design work once designs are revisited for alpha 2 or the beta.
What GPU configuration do you have? I don't have any of these issues. If NVIDIA, you have to wait for NVIDIA to release explicit sync Wayland drivers.
I've seen plenty of people using GTK themes with rectangular switches.
That's up to you. If you need it, you can always reinstall it.
They'll be available after COSMIC releases.