Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
67a6bb29bf | ||
|
|
a87aa2968c | ||
|
|
80cae9e220 |
@@ -1275,9 +1275,9 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
|
||||
onHover: (_) => _showControlsFromPointerActivity(),
|
||||
child: Stack(
|
||||
children: [
|
||||
// Linux keep-alive: 1px widget that continuously repaints to prevent
|
||||
// Flutter animations from freezing when GTK's frame clock goes idle
|
||||
if (Platform.isLinux) const Positioned(top: 0, left: 0, child: _LinuxKeepAlive()),
|
||||
// Keep-alive: 1px widget that continuously repaints to prevent
|
||||
// Flutter animations from freezing when the frame clock goes idle
|
||||
if (Platform.isLinux || Platform.isWindows) const Positioned(top: 0, left: 0, child: _LinuxKeepAlive()),
|
||||
// Invisible tap detector that always covers the full area
|
||||
// Also handles long-press for 2x speed
|
||||
Positioned.fill(
|
||||
@@ -1705,7 +1705,7 @@ class _LinuxKeepAliveState extends State<_LinuxKeepAlive> {
|
||||
width: 1,
|
||||
height: 1,
|
||||
child: ColoredBox(
|
||||
color: Color.fromARGB(_tick % 2, 0, 0, 0), // Alternate 0/1 alpha
|
||||
color: Color.fromRGBO(0, 0, 0, _tick % 2 == 0 ? 0.1 : 0.2), // Alternate alpha
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
name: plezy
|
||||
description: "A beautiful Plex client for Flutter"
|
||||
publish_to: "none"
|
||||
version: 1.14.0+30
|
||||
version: 1.14.1+31
|
||||
|
||||
environment:
|
||||
sdk: ^3.8.1
|
||||
|
||||
@@ -30,15 +30,13 @@ HWND MpvContainer::Create() {
|
||||
::RegisterClassExW(&window_class);
|
||||
|
||||
// Use WS_POPUP for a borderless window without title bar.
|
||||
// Use WS_EX_TOOLWINDOW | WS_EX_NOREDIRECTIONBITMAP to prevent shadow and DWM effects.
|
||||
handle_ = ::CreateWindowExW(
|
||||
WS_EX_APPWINDOW,
|
||||
WS_EX_TOOLWINDOW | WS_EX_NOACTIVATE | WS_EX_NOREDIRECTIONBITMAP,
|
||||
kClassName, kWindowName, WS_POPUP,
|
||||
0, 0, 100, 100, nullptr, nullptr,
|
||||
GetModuleHandle(nullptr), nullptr);
|
||||
|
||||
// Set the window to be fully opaque. This forces a redirection surface.
|
||||
::SetLayeredWindowAttributes(handle_, 0, 255, LWA_ALPHA);
|
||||
|
||||
// Disable DWM animations on the container.
|
||||
auto disable_window_transitions = TRUE;
|
||||
DwmSetWindowAttribute(handle_, DWMWA_TRANSITIONS_FORCEDISABLED,
|
||||
|
||||
@@ -37,7 +37,7 @@ class MpvContainer {
|
||||
ITaskbarList3* taskbar_ = nullptr;
|
||||
|
||||
static constexpr wchar_t kClassName[] = L"MPV_CONTAINER";
|
||||
static constexpr wchar_t kWindowName[] = L"Plezy Video Stream";
|
||||
static constexpr wchar_t kWindowName[] = L"";
|
||||
|
||||
static std::unique_ptr<MpvContainer> instance_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user