Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
0.6.9
Browse files Browse the repository at this point in the history
  • Loading branch information
rounk-ctrl committed Apr 18, 2024
1 parent cf90abf commit 2794740
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 9 deletions.
Binary file modified StartTAP/Resource.rc
Binary file not shown.
26 changes: 21 additions & 5 deletions StartTAP/VisualTreeWatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ HRESULT AddSettingsPanel(Grid rootGrid);
DWORD dwSize = sizeof(DWORD), dwOpacity = 0, dwLuminosity = 0, dwHide = 0, dwBorder = 0, dwRec = 0;

int64_t token = NULL;
int64_t token_vis = NULL;
static double pad = 15;
static Thickness oldSrchMar;
static double oldSrchHeight;

static bool rechide = false;
static bool srchhide = false;

VisualTreeWatcher::VisualTreeWatcher(winrt::com_ptr<IUnknown> site)
: m_selfPtr(this, winrt::take_ownership_from_abi_t{}),
m_XamlDiagnostics(site.as<IXamlDiagnostics>())
Expand Down Expand Up @@ -91,11 +95,26 @@ HRESULT VisualTreeWatcher::OnVisualTreeChange(ParentChildRelation relation, Visu
auto acrylicOverlay = FromHandle<Border>(element.Handle);
if (dwBorder == 1) acrylicOverlay.Background().as<SolidColorBrush>().Opacity(0);
}
else if (name == L"TopLevelSuggestionsListHeader" || name == L"SuggestionsParentContainer" || name == L"ShowMoreSuggestions")
else if (name == L"SuggestionsParentContainer" || name == L"ShowMoreSuggestions")
{
dwRec = GetVal(L"HideRecommended");
auto elmnt = FromHandle<FrameworkElement>(element.Handle);
if (dwRec == 1) elmnt.Visibility(Visibility::Collapsed);
}
else if (name == L"TopLevelSuggestionsListHeader")
{
dwRec = GetVal(L"HideRecommended");
auto elmnt = FromHandle<FrameworkElement>(element.Handle);
if (dwRec == 1) elmnt.Visibility(Visibility::Collapsed);
if (token_vis == NULL)
{
token_vis = elmnt.RegisterPropertyChangedCallback(UIElement::VisibilityProperty(),
[](DependencyObject sender, DependencyProperty property)
{
auto element = sender.try_as<FrameworkElement>();
element.Visibility(rechide ? Visibility::Collapsed : Visibility::Visible);
});
}
}
else if (name == L"StartMenuPinnedList")
{
Expand Down Expand Up @@ -241,8 +260,6 @@ HRESULT AddSettingsPanel(Grid rootGrid)
SetVal(subKey, L"TintLuminosityOpacity", sliderValue);
});

static bool rechide = false;
static bool srchhide = false;

if (dwRec == 1) rechide = true;
if (dwHide == 1) srchhide = true;
Expand Down Expand Up @@ -317,12 +334,11 @@ HRESULT AddSettingsPanel(Grid rootGrid)
if (dwRec == 1)
{
checkBox.IsChecked(true);
rechide = true;
}

static auto suggHeader = FindDescendantByName(topRoot, L"TopLevelSuggestionsListHeader").as<FrameworkElement>();
static auto suggContainer = FindDescendantByName(topRoot, L"SuggestionsParentContainer").as<FrameworkElement>();
static auto suggBtn = FindDescendantByName(topRoot, L"ShowMoreSuggestions").as<FrameworkElement>();
static auto suggHeader = FindDescendantByName(topRoot, L"TopLevelSuggestionsListHeader").as<FrameworkElement>();

static auto pinList = FindDescendantByName(topRoot, L"StartMenuPinnedList").as<FrameworkElement>();

Expand Down
Binary file modified start/Resource.aps
Binary file not shown.
8 changes: 4 additions & 4 deletions start/Resource.rc
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 0,6,5,0
PRODUCTVERSION 0,6,5,0
FILEVERSION 0,6,9,0
PRODUCTVERSION 0,6,9,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x25L
Expand All @@ -69,12 +69,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "Rounak"
VALUE "FileDescription", "TranslucentSM Loader"
VALUE "FileVersion", "0.6.5.0"
VALUE "FileVersion", "0.6.9.0"
VALUE "InternalName", "start.exe"
VALUE "LegalCopyright", "Copyright (C) 2024 Rounak"
VALUE "OriginalFilename", "start.exe"
VALUE "ProductName", "TranslucentSM"
VALUE "ProductVersion", "0.6.5.0"
VALUE "ProductVersion", "0.6.9.0"
END
END
BLOCK "VarFileInfo"
Expand Down

0 comments on commit 2794740

Please sign in to comment.