Start adding grid
This commit is contained in:
parent
9301769d58
commit
f04d86e0ad
37 changed files with 709 additions and 211 deletions
|
@ -21,6 +21,7 @@ list(APPEND ui_elements_LIB_INCLUDES
|
|||
widgets/VerticalSpacer.cpp
|
||||
widgets/StackWidget.cpp
|
||||
widgets/TextBox.cpp
|
||||
style/Theme.cpp
|
||||
)
|
||||
|
||||
add_library(ui_elements SHARED ${ui_elements_LIB_INCLUDES})
|
||||
|
@ -28,6 +29,7 @@ add_library(ui_elements SHARED ${ui_elements_LIB_INCLUDES})
|
|||
target_include_directories(ui_elements PUBLIC
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/widgets"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/style"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/widgets/elements"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/ui_events"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/desktop_elements"
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
#include "Theme.h"
|
||||
|
||||
Color Theme::getBackgroundPrimary()
|
||||
{
|
||||
return {217, 217, 217};
|
||||
}
|
||||
|
||||
Color Theme::getBannerBackground()
|
||||
{
|
||||
return {181, 189, 200};
|
||||
}
|
||||
|
||||
Color Theme::getButtonPrimaryBackground()
|
||||
{
|
||||
return {200, 200, 200};
|
||||
}
|
||||
|
||||
Color Theme::getButtonPrimaryPressed()
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
Color Theme::getTextPrimary()
|
||||
{
|
||||
return {};
|
||||
}
|
|
@ -1 +1,15 @@
|
|||
#include "Color.h"
|
||||
|
||||
class Theme
|
||||
{
|
||||
public:
|
||||
static Color getBackgroundPrimary();
|
||||
|
||||
static Color getBannerBackground();
|
||||
|
||||
static Color getButtonPrimaryBackground();
|
||||
|
||||
static Color getButtonPrimaryPressed();
|
||||
|
||||
static Color getTextPrimary();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue