Getting an executable path or class (?) from a taskListButtonElement #788
Answered
by
m417z
YellowAfterlife
asked this question in
Q&A
-
Hey, I've been tweaking the Taskbar Labels mod to bring 7+ Taskbar Tweaker's behaviour with enabling/disabling taskbar labels for individual applications to Windows 11 taskbar. Right now I'm changing this windhawk-mods/mods/taskbar-labels.wh.cpp Lines 793 to 803 in 3100a61 to this: if (secondColumnWidthPixels > 0 && labelControlElement) {
auto text = labelControlElement.Text();
auto hide = (text == L"Task Manager"
|| text == L"Vial"
|| text.ends_with(L" - Notepad++")
|| text.ends_with(L" - Windhawk")
// ... you get the idea
);
if (hide) {
labelControlElement.Visibility(Visibility::Collapsed);
columnDefinitions.GetAt(1).Width(GridLength({
.Value = 0,
.GridUnitType = GridUnitType::Pixel,
}));
} else {
labelControlElement.Visibility(Visibility::Visible);
columnDefinitions.GetAt(1).Width(GridLength({
.Value = secondColumnWidthPixels,
.GridUnitType = GridUnitType::Pixel,
}));
}
} else {
columnDefinitions.GetAt(1).Width(GridLength({
.Value = 1,
.GridUnitType = GridUnitType::Auto,
}));
} And this works, |
Beta Was this translation helpful? Give feedback.
Answered by
m417z
Oct 1, 2024
Replies: 1 comment
-
Hi, showing/hiding labels per-program is now possible in version 1.3. See also: #203. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
YellowAfterlife
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, showing/hiding labels per-program is now possible in version 1.3. See also: #203.