pop-os / libcosmic

WIP library for COSMIC applications
https://pop-os.github.io/libcosmic/cosmic/
Mozilla Public License 2.0
457 stars 43 forks source link

Latest Update Breaks ComboBox #656

Open bhh32 opened 2 weeks ago

bhh32 commented 2 weeks ago

Issue

It looks like the latest update breaks the combo_box (ComboBox) widget.

Compiler Error

compiler_error

Code Snippets

When I try to use what the compiler is telling me to use, cosmic::Theme, I get an error when creating the combo_box (I've tried ComboBox::new() and the combo_box() function) because it's expecting cosmic::iced::Theme.

cosmic_Theme_combo_box

However, when I switch it to cosmic::iced::Theme it allows me to create the combo_box (using both ComboBox::new() and the combo_box() function), but I get the compiler error above. This is what the code looks like:

cosmic_iced_theme_combo_box

Here is the code with cosmic::iced::Theme without the blocking error messages:

combo_box_error_no_code_block

CristianKerr commented 2 days ago

Got the same issue. Did you find a workaround for this?

bhh32 commented 2 days ago

I did not. I used a dropdown in its place.

On Sat, Nov 2, 2024 at 4:20 AM CristianKerr @.***> wrote:

Got the same issue. Did you find a workaround for this?

— Reply to this email directly, view it on GitHub https://github.com/pop-os/libcosmic/issues/656#issuecomment-2452958138, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEH5FSZGL2NRSU52B363QALZ6SYPVAVCNFSM6AAAAABQK6OKD2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJSHE2TQMJTHA . You are receiving this because you authored the thread.Message ID: @.***>