debugger: Change console text color, add tooltips (#31765)
- Improved legibility of console text: | Theme | Dark | Light | |--------|--------|--------| | Before |  |  | | After |  |  | Release Notes: - debugger: Improved legibility of console text - debugger: Added tooltips to all debugger items.
This commit is contained in:
@@ -173,6 +173,10 @@ impl Item for SubView {
|
||||
self.kind.to_shared_string()
|
||||
}
|
||||
|
||||
fn tab_tooltip_text(&self, _: &App) -> Option<SharedString> {
|
||||
Some(self.kind.tab_tooltip())
|
||||
}
|
||||
|
||||
fn tab_content(
|
||||
&self,
|
||||
params: workspace::item::TabContentParams,
|
||||
@@ -399,6 +403,9 @@ pub(crate) fn new_debugger_pane(
|
||||
.p_1()
|
||||
.rounded_md()
|
||||
.cursor_pointer()
|
||||
.when_some(item.tab_tooltip_text(cx), |this, tooltip| {
|
||||
this.tooltip(Tooltip::text(tooltip))
|
||||
})
|
||||
.map(|this| {
|
||||
let theme = cx.theme();
|
||||
if selected {
|
||||
|
||||
Reference in New Issue
Block a user