Compare commits
49 Commits
main
...
dev-LayerS
Author | SHA1 | Date |
---|---|---|
ArgonarioD | 3aebd3f2e9 | |
ArgonarioD | b4d29f15da | |
ArgonarioD | 9d09c73af2 | |
ArgonarioD | 0aa69195b3 | |
ArgonarioD | 21aeb0832b | |
ArgonarioD | 1ef08dc49e | |
ArgonarioD | cab047bff0 | |
ArgonarioD | 43719bc81a | |
ArgonarioD | e7825a0665 | |
ArgonarioD | 93db81503a | |
ArgonarioD | 412e2eec5e | |
ArgonarioD | 64c4646783 | |
ArgonarioD | 64e1c4a4e9 | |
ArgonarioD | adb28a67e8 | |
ArgonarioD | 47ada04c3a | |
ArgonarioD | 1378997f64 | |
ArgonarioD | 1650404bb9 | |
ArgonarioD | f42868cf3f | |
ArgonarioD | d40796abb0 | |
ArgonarioD | 73719905db | |
ArgonarioD | 789d282393 | |
ArgonarioD | fb7caf407c | |
ArgonarioD | 096c3ac848 | |
ArgonarioD | 7da01fbe92 | |
ArgonarioD | 9984dd23f8 | |
ArgonarioD | 200dccff46 | |
ArgonarioD | fef34280c6 | |
ArgonarioD | 50a1bdaff4 | |
ArgonarioD | ce7f2ae8fa | |
ArgonarioD | 6ce962b4c5 | |
ArgonarioD | f109ed7d62 | |
ArgonarioD | 257868fd4c | |
ArgonarioD | 8809daaddd | |
ArgonarioD | e72ba7ebbd | |
ArgonarioD | 3ceeba61b5 | |
ArgonarioD | 7079b335cb | |
ArgonarioD | 1e3bef78f4 | |
ArgonarioD | 27c1d4d18a | |
ArgonarioD | 460428c135 | |
ArgonarioD | 6494758781 | |
ArgonarioD | 7da434541a | |
ArgonarioD | 6a742f6526 | |
ArgonarioD | 6191eb919e | |
ArgonarioD | 0ff779c5b2 | |
ArgonarioD | e97e6d5281 | |
ArgonarioD | b429761d81 | |
ArgonarioD | 1b926b2054 | |
ArgonarioD | 28df3d47c5 | |
ArgonarioD | 744ae58743 |
|
@ -1,6 +1,4 @@
|
||||||
#include "ColorPicker.h"
|
#include "ColorPicker.h"
|
||||||
#include <QColorDialog>
|
|
||||||
#include <QDebug>
|
|
||||||
|
|
||||||
QString getStyleSheet(const QColor& color)
|
QString getStyleSheet(const QColor& color)
|
||||||
{
|
{
|
||||||
|
@ -27,7 +25,6 @@ QColor ColorPicker::getColor() const
|
||||||
|
|
||||||
void ColorPicker::onClicked()
|
void ColorPicker::onClicked()
|
||||||
{
|
{
|
||||||
//const QColor newColor = QColorDialog::getColor(this->color, this);
|
|
||||||
const QColor newColor = ColorHelper::execColorDialog(this->color, this);
|
const QColor newColor = ColorHelper::execColorDialog(this->color, this);
|
||||||
if (newColor.isValid() && this->color != newColor)
|
if (newColor.isValid() && this->color != newColor)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
#include <qtmaterialraisedbutton.h>
|
#include <qtmaterialraisedbutton.h>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <array>
|
#include <array>
|
||||||
|
#include <QHeaderView>
|
||||||
#include <ranges>
|
#include <ranges>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
|
@ -28,12 +29,6 @@ StrokeStyleWidget::StrokeStyleWidget(
|
||||||
QWidget* parent
|
QWidget* parent
|
||||||
) : QWidget(parent), stroke(stroke)
|
) : QWidget(parent), stroke(stroke)
|
||||||
{
|
{
|
||||||
auto& materialMap = radialStroke(stroke)->materialMap;
|
|
||||||
if (materialMap.empty())
|
|
||||||
{
|
|
||||||
materialMap[1.f] = newMaterial();
|
|
||||||
}
|
|
||||||
|
|
||||||
auto* viewLayout = new QVBoxLayout(this);
|
auto* viewLayout = new QVBoxLayout(this);
|
||||||
this->setLayout(viewLayout);
|
this->setLayout(viewLayout);
|
||||||
|
|
||||||
|
@ -115,7 +110,7 @@ void StrokeStyleWidget::initTable(const std::shared_ptr<Renderer::StrokeRadialGr
|
||||||
<< QStringLiteral("´Ö²Ú¶È")
|
<< QStringLiteral("´Ö²Ú¶È")
|
||||||
<< QStringLiteral("ÆäËû²Ù×÷");
|
<< QStringLiteral("ÆäËû²Ù×÷");
|
||||||
strokeTable->setHorizontalHeaderLabels(headers);
|
strokeTable->setHorizontalHeaderLabels(headers);
|
||||||
strokeTable->setMinimumHeight(strokeTable->rowHeight(0) * 5);
|
strokeTable->setMinimumHeight(strokeTable->horizontalHeader()->height() * 6);
|
||||||
strokeTable->setMinimumWidth(strokeTable->sizeHint().width());
|
strokeTable->setMinimumWidth(strokeTable->sizeHint().width());
|
||||||
int row = 0;
|
int row = 0;
|
||||||
// ÄÚÈÝ
|
// ÄÚÈÝ
|
||||||
|
@ -131,7 +126,7 @@ void StrokeStyleWidget::initTable(const std::shared_ptr<Renderer::StrokeRadialGr
|
||||||
void StrokeStyleWidget::initAddButton()
|
void StrokeStyleWidget::initAddButton()
|
||||||
{
|
{
|
||||||
this->addButton = new QtMaterialRaisedButton("+", strokeTable);
|
this->addButton = new QtMaterialRaisedButton("+", strokeTable);
|
||||||
addButton->setFixedHeight(this->strokeTable->rowHeight(0));
|
addButton->setFixedHeight(30);
|
||||||
addButton->setBackgroundColor(ColorHelper::instance().getPrimary1());
|
addButton->setBackgroundColor(ColorHelper::instance().getPrimary1());
|
||||||
connect(addButton, &QtMaterialRaisedButton::clicked, [this] {
|
connect(addButton, &QtMaterialRaisedButton::clicked, [this] {
|
||||||
handlingRowInsert = true;
|
handlingRowInsert = true;
|
||||||
|
|
|
@ -19,8 +19,8 @@ using Renderer::MaterialStyleFill;
|
||||||
QString getDisplayName() const override { return QStringLiteral(display_name); } \
|
QString getDisplayName() const override { return QStringLiteral(display_name); } \
|
||||||
static QString typeName() { return type_name; } \
|
static QString typeName() { return type_name; } \
|
||||||
QString getTypeName() const override { return type_name; }
|
QString getTypeName() const override { return type_name; }
|
||||||
#define radialStroke(stroke) std::static_pointer_cast<Renderer::StrokeRadialGradient>(stroke->materialStroke)
|
#define radialStroke(stroke) std::static_pointer_cast<Renderer::StrokeRadialGradient>((stroke)->materialStroke)
|
||||||
#define plainFill(fill) std::static_pointer_cast<Renderer::FillPlain>(fill->materialFill)
|
#define plainFill(fill) std::static_pointer_cast<Renderer::FillPlain>((fill)->materialFill)
|
||||||
|
|
||||||
class LayerStyle : public Renderer::ElementStyle
|
class LayerStyle : public Renderer::ElementStyle
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue