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

Commit

Permalink
fix things
Browse files Browse the repository at this point in the history
  • Loading branch information
rounk-ctrl committed Oct 24, 2023
1 parent 6068831 commit a3dbcbc
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 5 deletions.
12 changes: 7 additions & 5 deletions TAPdll/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ using namespace winrt::Windows::UI::Xaml::Controls;
using namespace winrt::Windows::UI::Xaml::Media;

DWORD dwRes = 0, dwSize = sizeof(DWORD), dwOpacity = 0, dwLuminosity = 0, dwHide = 0;
typedef void (WINAPI* RtlGetVersion_FUNC) (OSVERSIONINFOEXW*);
OSVERSIONINFOEX os;

BOOL APIENTRY DllMain(HMODULE hModule,
DWORD ul_reason_for_call,
Expand Down Expand Up @@ -100,6 +98,7 @@ struct ExplorerTAP : winrt::implements<ExplorerTAP, IObjectWithSite>
// Search for AcrylicBorder name
static auto acrylicBorder = FindDescendantByName(content, L"AcrylicBorder").as<Border>();
static auto srchBox = FindDescendantByName(content, L"StartMenuSearchBox").as<Control>();

if (acrylicBorder != nullptr)
{
if (dwOpacity > 100) dwOpacity = 100;
Expand All @@ -122,13 +121,17 @@ struct ExplorerTAP : winrt::implements<ExplorerTAP, IObjectWithSite>
auto f = FontIcon();
f.Glyph(L"\uE104");
f.FontFamily(Media::FontFamily(L"Segoe Fluent Icons"));
f.FontSize(15.5);
bt.Content(winrt::box_value(f));
Thickness buttonMargin{-40,0,0,0};
bt.Margin(buttonMargin);
Thickness buttonPad{8.2,8,8.2,8};
Thickness buttonPad{11.2,11.2,11.2,11.2};
bt.Padding(buttonPad);
bt.Width(38);
bt.FontFamily(Windows::UI::Xaml::Media::FontFamily(L"Segoe UI Semibold"));
bt.BorderThickness(Thickness{0});
bt.BorderBrush(SolidColorBrush(Colors::Transparent()));
bt.Background(SolidColorBrush(Colors::Transparent()));
ToolTipService::SetToolTip(bt, box_value(L"TranslucentSM settings"));
grid.Children().Append(bt);

auto stackPanel = StackPanel();
Expand Down Expand Up @@ -265,7 +268,6 @@ _Use_decl_annotations_ STDAPI DllCanUnloadNow(void)
}
else
{

return S_OK;
}
}
Binary file modified start/Resource.aps
Binary file not shown.
41 changes: 41 additions & 0 deletions start/Resource.rc
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,47 @@ END
// 256
//

TAPx64 256 "../x64/Release/TAPdll.dll"


/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 0,3,0,0
PRODUCTVERSION 0,3,0,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x40004L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "CompanyName", "Rounak"
VALUE "FileDescription", "TranslucentSM"
VALUE "FileVersion", "0.3.0.0"
VALUE "InternalName", "start.exe"
VALUE "LegalCopyright", "Copyright (C) 2023 Rounak"
VALUE "OriginalFilename", "start.exe"
VALUE "ProductName", "TranslucentSM"
VALUE "ProductVersion", "0.3.0.0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END

#endif // English (United States) resources
/////////////////////////////////////////////////////////////////////////////

Expand Down
3 changes: 3 additions & 0 deletions start/start.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@
<ItemGroup>
<ResourceCompile Include="Resource.rc" />
</ItemGroup>
<ItemGroup>
<None Include="..\x64\Release\TAPdll.dll" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets" />
</Project>

0 comments on commit a3dbcbc

Please sign in to comment.