Skip to content

Commit 2356ae8

Browse files
committed
Remove colons from widget gallery
1 parent fa95351 commit 2356ae8

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

crates/egui_demo_lib/src/demo/code_example.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ impl crate::Demo for CodeExample {
111111
.min_width(375.0)
112112
.default_size([390.0, 500.0])
113113
.scroll(false)
114-
.resizable([true, false])
114+
.resizable([true, false]) // resizable so we can shrink if the text edit grows
115115
.show(ctx, |ui| self.ui(ui));
116116
}
117117
}

crates/egui_demo_lib/src/demo/widget_gallery.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl crate::Demo for WidgetGallery {
5050
fn show(&mut self, ctx: &egui::Context, open: &mut bool) {
5151
egui::Window::new(self.name())
5252
.open(open)
53-
.resizable([true, false])
53+
.resizable([true, false]) // resizable so we can shrink if the text edit grows
5454
.default_width(280.0)
5555
.show(ctx, |ui| {
5656
use crate::View as _;
@@ -254,7 +254,7 @@ impl WidgetGallery {
254254
ui.end_row();
255255

256256
ui.hyperlink_to(
257-
"Custom widget:",
257+
"Custom widget",
258258
super::toggle_switch::url_to_file_source_code(),
259259
);
260260
ui.add(super::toggle_switch::toggle(boolean)).on_hover_text(
@@ -274,10 +274,9 @@ fn doc_link_label_with_crate<'a>(
274274
title: &'a str,
275275
search_term: &'a str,
276276
) -> impl egui::Widget + 'a {
277-
let label = format!("{title}:");
278277
let url = format!("https://docs.rs/{crate_name}?search={search_term}");
279278
move |ui: &mut egui::Ui| {
280-
ui.hyperlink_to(label, url).on_hover_ui(|ui| {
279+
ui.hyperlink_to(title, url).on_hover_ui(|ui| {
281280
ui.horizontal_wrapped(|ui| {
282281
ui.label("Search egui docs for");
283282
ui.code(search_term);

0 commit comments

Comments
 (0)