Skip to content

Commit

Permalink
Merge pull request #66 from oclero/feature/showcase-window
Browse files Browse the repository at this point in the history
Feature/showcase window
  • Loading branch information
oclero authored Nov 24, 2024
2 parents 0dacfd6 + 3348d14 commit 793a690
Show file tree
Hide file tree
Showing 69 changed files with 2,775 additions and 1,899 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

## v1.0.0

- Initial release. Enjoy!
22 changes: 17 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ project("qlementine"
set(PROJECT_COPYRIGHT "© Olivier Cléro, MIT License.")
set(PROJECT_NAMESPACE "oclero")

# Temporary hack to make it work with Qt6 <6.4.2 && >6.4.2 With Qt5, it was
# "path/to/Qt/6.7.0/msvc2019_64/lib/cmake/Qt6", but with Qt6, it is now
# "path/to/Qt/6.7.0/msvc2019_64".
if(WIN32)
string(FIND "${CMAKE_PREFIX_PATH}" "/lib/cmake/Qt6" USING_Qt6_INDEX)
if(NOT ${USING_Qt6_INDEX} EQUAL -1)
string(REPLACE "/lib/cmake/Qt6" "" "${CMAKE_PREFIX_PATH}" "${CMAKE_PREFIX_PATH}")
endif()
endif()

# Global flags.
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD 17)
Expand All @@ -23,20 +33,22 @@ set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
if (NOT CMAKE_OSX_DEPLOYMENT_TARGET)
if(NOT CMAKE_OSX_DEPLOYMENT_TARGET)
set(CMAKE_OSX_DEPLOYMENT_TARGET "13.6")
endif()

# Find Qt.
find_package(Qt6 REQUIRED COMPONENTS Core Widgets Svg)
qt_standard_project_setup()

# include(DeployQt)

# The library.
add_subdirectory(lib)

# Sandbox.
if(${PROJECT_IS_TOP_LEVEL})
# Example apps using the lib.
if(QLEMENTINE_SANDBOX)
add_subdirectory(sandbox)
endif()

if(QLEMENTINE_SHOWCASE)
add_subdirectory(showcase)
endif()
66 changes: 52 additions & 14 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"generator": "Xcode",
"binaryDir": "${sourceDir}/_build",
"cacheVariables": {
"CMAKE_PREFIX_PATH": "/opt/homebrew/opt/qt/lib/cmake/Qt6"
"CMAKE_PREFIX_PATH": "/opt/homebrew/opt/qt/lib/cmake/Qt6",
"QLEMENTINE_SANDBOX": true,
"QLEMENTINE_SHOWCASE": true
},
"condition": {
"type": "equals",
Expand All @@ -28,7 +30,9 @@
"generator": "Visual Studio 17 2022",
"binaryDir": "${sourceDir}/_build",
"cacheVariables": {
"CMAKE_PREFIX_PATH": "C:/Qt/6.8.0/msvc2022_64"
"CMAKE_PREFIX_PATH": "C:/Qt/6.8.0/msvc2022_64",
"QLEMENTINE_SANDBOX": true,
"QLEMENTINE_SHOWCASE": true
},
"condition": {
"type": "equals",
Expand All @@ -42,6 +46,10 @@
"description": "Makefile for Linux",
"generator": "Unix Makefiles",
"binaryDir": "${sourceDir}/_build",
"cacheVariables": {
"QLEMENTINE_SANDBOX": true,
"QLEMENTINE_SHOWCASE": true
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
Expand All @@ -54,9 +62,8 @@
"name": "macos",
"displayName": "macOS",
"configurePreset": "macos",
"description": "Release build with Xcode for macOS",
"description": "Build with Xcode for macOS",
"targets": ["qlementine"],
"configuration": "Release",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
Expand All @@ -67,9 +74,20 @@
"name": "macos-sandbox",
"displayName": "Sandbox for macOS",
"configurePreset": "macos",
"description": "Sandbox - Release build with Xcode for macOS",
"description": "Sandbox - Build with Xcode for macOS",
"targets": ["sandbox"],
"configuration": "Release",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
}
},
{
"name": "macos-showcase",
"displayName": "Showcase for macOS",
"configurePreset": "macos",
"description": "Showcase - Build with Xcode for macOS",
"targets": ["showcase"],
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
Expand All @@ -80,9 +98,8 @@
"name": "windows",
"displayName": "Windows",
"configurePreset": "windows",
"description": "Release build with Visual Studio for Windows",
"description": "Build with Visual Studio for Windows",
"targets": ["qlementine"],
"configuration": "Release",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
Expand All @@ -93,9 +110,20 @@
"name": "windows-sandbox",
"displayName": "Sandbox for Windows",
"configurePreset": "windows",
"description": "Sandbox - Release build with Visual Studio for Windows",
"description": "Sandbox - Build with Visual Studio for Windows",
"targets": ["sandbox"],
"configuration": "Release",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "windows-showcase",
"displayName": "Showcase for Windows",
"configurePreset": "windows",
"description": "Showcase - Build with Visual Studio for Windows",
"targets": ["showcase"],
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
Expand All @@ -106,9 +134,8 @@
"name": "linux",
"displayName": "Linux",
"configurePreset": "linux",
"description": "Release build for Linux",
"description": "Build for Linux",
"targets": ["qlementine"],
"configuration": "Release",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
Expand All @@ -119,9 +146,20 @@
"name": "linux-sandbox",
"displayName": "Sandbox for Linux",
"configurePreset": "linux",
"description": "Sandbox - Release build for Linux",
"description": "Sandbox - Build for Linux",
"targets": ["sandbox"],
"configuration": "Release",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
}
},
{
"name": "linux-showcase",
"displayName": "Showcase for Linux",
"configurePreset": "linux",
"description": "Showcase - Build for Linux",
"targets": ["showcase"],
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ Modern QStyle for desktop Qt6 applications.

See [documentation](https://oclero.github.io/qlementine) for more information.

<div align="center">
<img style="width: 45%; padding: 10px;" src="branding/screenshots/windows-light.png">
<img style="width: 45%; padding: 10px;" src="branding/screenshots/windows-dark.png">
</div>

---

### Table of Contents
Expand Down
Binary file removed branding/icon/icon.psd
Binary file not shown.
Binary file added branding/screenshots/windows-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added branding/screenshots/windows-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 793a690

Please sign in to comment.