-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option for using large color palette on right button click (#2171)
(cherry picked from commit 403a647) Co-authored-by: Yuriy Puchkov <[email protected]>
- Loading branch information
1 parent
1bd8857
commit 8b08c7f
Showing
6 changed files
with
64 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,8 +33,8 @@ if (APPLE) | |
COMMAND bash "-c" "sips -z 512 512 \"${CMAKE_SOURCE_DIR}\"/data/img/app/flameshot.monochrome-1024.png --out flameshot.iconset/[email protected]" | ||
COMMAND bash "-c" "sips -z 512 512 \"${CMAKE_SOURCE_DIR}\"/data/img/app/flameshot.monochrome-1024.png --out flameshot.iconset/icon_512x512.png" | ||
COMMAND bash "-c" "sips -z 1024 1024 \"${CMAKE_SOURCE_DIR}\"/data/img/app/flameshot.monochrome-1024.png --out flameshot.iconset/[email protected]" | ||
|
||
|
||
COMMAND bash "-c" "iconutil -c icns flameshot.iconset" | ||
) | ||
|
||
|
@@ -215,6 +215,15 @@ if (WIN32) | |
endif () | ||
endif () | ||
|
||
# Choose default color palette (small or large) | ||
if($ENV{FLAMESHOT_PREDEFINED_COLOR_PALETTE_LARGE}) | ||
set(FLAMESHOT_PREDEFINED_COLOR_PALETTE_LARGE true) | ||
else() | ||
set(FLAMESHOT_PREDEFINED_COLOR_PALETTE_LARGE false) | ||
endif() | ||
message("Flameshot predefined color palette large: " ${FLAMESHOT_PREDEFINED_COLOR_PALETTE_LARGE}) | ||
target_compile_definitions(flameshot PRIVATE PREDEFINED_COLOR_PALETTE_LARGE=${FLAMESHOT_PREDEFINED_COLOR_PALETTE_LARGE}) | ||
|
||
find_package (Git) | ||
if (GIT_FOUND) | ||
message("git found: ${GIT_EXECUTABLE} in version ${GIT_VERSION_STRING}") | ||
|
@@ -347,7 +356,7 @@ if (WIN32) | |
if (ENABLE_OPENSSL) | ||
if (EXISTS ${OPENSSL_ROOT_DIR}/bin) | ||
|
||
install( | ||
install( | ||
DIRECTORY ${OPENSSL_ROOT_DIR}/bin/ | ||
DESTINATION bin | ||
FILES_MATCHING | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters