Skip to content

Commit d838ab4

Browse files
committed
don't use tooltips for notifications icons
1 parent e892d91 commit d838ab4

1 file changed

Lines changed: 13 additions & 28 deletions

File tree

src/gui/pages/notifications_page.rs

Lines changed: 13 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,10 @@ fn packets_notification_log<'a>(
162162
.height(Length::Fill)
163163
.spacing(30)
164164
.push(
165-
Tooltip::new(
166-
Icon::PacketsThreshold
167-
.to_text()
168-
.size(80)
169-
.line_height(LineHeight::Relative(1.0)),
170-
Text::new(packets_exceeded_translation(language)).font(font),
171-
Position::FollowCursor,
172-
)
173-
.class(ContainerType::Tooltip),
165+
Icon::PacketsThreshold
166+
.to_text()
167+
.size(80)
168+
.line_height(LineHeight::Relative(1.0)),
174169
)
175170
.push(
176171
Column::new()
@@ -243,15 +238,10 @@ fn bytes_notification_log<'a>(
243238
.align_y(Alignment::Center)
244239
.height(Length::Fill)
245240
.push(
246-
Tooltip::new(
247-
Icon::BytesThreshold
248-
.to_text()
249-
.size(80)
250-
.line_height(LineHeight::Relative(1.0)),
251-
Text::new(bytes_exceeded_translation(language)).font(font),
252-
Position::FollowCursor,
253-
)
254-
.class(ContainerType::Tooltip),
241+
Icon::BytesThreshold
242+
.to_text()
243+
.size(80)
244+
.line_height(LineHeight::Relative(1.0)),
255245
)
256246
.push(
257247
Column::new()
@@ -327,16 +317,11 @@ fn favorite_notification_log<'a>(
327317
.align_y(Alignment::Center)
328318
.height(Length::Fill)
329319
.push(
330-
Tooltip::new(
331-
Icon::Star
332-
.to_text()
333-
.size(80)
334-
.class(TextType::Starred)
335-
.line_height(LineHeight::Relative(1.0)),
336-
Text::new(favorite_transmitted_translation(language)).font(font),
337-
Position::FollowCursor,
338-
)
339-
.class(ContainerType::Tooltip),
320+
Icon::Star
321+
.to_text()
322+
.size(80)
323+
.class(TextType::Starred)
324+
.line_height(LineHeight::Relative(1.0)),
340325
)
341326
.push(
342327
Column::new()

0 commit comments

Comments
 (0)