mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-28 16:13:53 +03:00
bb5c370575
The bug seems to be in Windows when it upscales an smaller icon for HiDPI displays. It works fine if we provide a 256x256 size in the ico files. Use the new square icons also used on OS X that removes the share badge and instead has a share icon only for the OK state. This means that we can also remove 3 icons and release 3 slots in the registry for overlay icons (only the first few are actually loaded by explorer). This also adds a script that uses ImageMagick to convert our SVG icons to Windows ico files. Since ImageMagick seems to have issue doing proper antialiasing with pixels on the edge of icons, this also slightly scale the icons to leave 2px on each edge, out of its logical 128px width.
44 lines
No EOL
1.7 KiB
C
44 lines
No EOL
1.7 KiB
C
/**
|
|
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
|
|
*
|
|
* This library is free software; you can redistribute it and/or modify it under
|
|
* the terms of the GNU Lesser General Public License as published by the Free
|
|
* Software Foundation; either version 2.1 of the License, or (at your option)
|
|
* any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
|
|
* details.
|
|
*/
|
|
|
|
|
|
#define OVERLAY_GUID_ERROR L"{0960F090-F328-48A3-B746-276B1E3C3722}"
|
|
#define OVERLAY_GUID_OK L"{0960F092-F328-48A3-B746-276B1E3C3722}"
|
|
#define OVERLAY_GUID_OK_SHARED L"{0960F093-F328-48A3-B746-276B1E3C3722}"
|
|
#define OVERLAY_GUID_SYNC L"{0960F094-F328-48A3-B746-276B1E3C3722}"
|
|
#define OVERLAY_GUID_WARNING L"{0960F096-F328-48A3-B746-276B1E3C3722}"
|
|
|
|
#define OVERLAY_GENERIC_NAME L"OC Overlay Handler"
|
|
|
|
// two spaces to put us ahead of the competition :/
|
|
#define OVERLAY_NAME_ERROR L" OCError"
|
|
#define OVERLAY_NAME_OK L" OCOK"
|
|
#define OVERLAY_NAME_OK_SHARED L" OCOKShared"
|
|
#define OVERLAY_NAME_SYNC L" OCSync"
|
|
#define OVERLAY_NAME_WARNING L" OCWarning"
|
|
|
|
#define REGISTRY_OVERLAY_KEY L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ShellIconOverlayIdentifiers"
|
|
#define REGISTRY_CLSID L"CLSID"
|
|
#define REGISTRY_IN_PROCESS L"InprocServer32"
|
|
#define REGISTRY_THREADING L"ThreadingModel"
|
|
#define REGISTRY_APARTMENT L"Apartment"
|
|
#define REGISTRY_VERSION L"Version"
|
|
#define REGISTRY_VERSION_NUMBER L"1.0"
|
|
|
|
//Registry values for running
|
|
#define REGISTRY_ENABLE_OVERLAY L"EnableOverlay"
|
|
|
|
#define GET_FILE_OVERLAY_ID L"getFileIconId"
|
|
|
|
#define PORT 34001 |