Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use default word wrapping #25

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/widget/cosmic_toggler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@
self.text_alignment,
alignment::Vertical::Top,
self.text_shaping,
cosmic::iced_core::text::Wrap::default(),
);
match self.width {
Length::Fill => {
Expand Down Expand Up @@ -265,11 +266,11 @@
viewport: &Rectangle,
) {
/// Makes sure that the border radius of the toggler looks good at every size.
const BORDER_RADIUS_RATIO: f32 = 32.0 / 13.0;

Check warning on line 269 in src/widget/cosmic_toggler.rs

View workflow job for this annotation

GitHub Actions / wayland

constant `BORDER_RADIUS_RATIO` is never used

Check warning on line 269 in src/widget/cosmic_toggler.rs

View workflow job for this annotation

GitHub Actions / wayland

constant `BORDER_RADIUS_RATIO` is never used

/// The space ratio between the background Quad and the Toggler bounds, and
/// between the background Quad and foreground Quad.
const SPACE_RATIO: f32 = 0.05;

Check warning on line 273 in src/widget/cosmic_toggler.rs

View workflow job for this annotation

GitHub Actions / wayland

constant `SPACE_RATIO` is never used

Check warning on line 273 in src/widget/cosmic_toggler.rs

View workflow job for this annotation

GitHub Actions / wayland

constant `SPACE_RATIO` is never used

let mut children = layout.children();

Expand Down
Loading