From 74732d0079be6a53d951d030b0c57fa655123440 Mon Sep 17 00:00:00 2001 From: Dongxu Li Date: Sun, 24 Sep 2023 23:14:49 -0400 Subject: [PATCH] Hatch: show hatched area during edit properties --- CMakeLists.txt | 2 +- lcUI/lcadmodelviewer.cpp | 4 ++-- lcviewernoqt/documentcanvas.cpp | 1 + scripts/ubuntu-install/createAppImage.sh | 1 + 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 35ae72658..3e0ec19ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,7 @@ endif() set(FINAL_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}") -if(EXISTS "${CMAKE_SOURCE_DIR}/conan_toolchain.cmake") +if(MSVC AND EXISTS "${CMAKE_SOURCE_DIR}/conan_toolchain.cmake") set(FINAL_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}") set(CMAKE_INSTALL_BINDIR "bin") diff --git a/lcUI/lcadmodelviewer.cpp b/lcUI/lcadmodelviewer.cpp index 37cff7c2b..c55d86458 100644 --- a/lcUI/lcadmodelviewer.cpp +++ b/lcUI/lcadmodelviewer.cpp @@ -4,7 +4,7 @@ using namespace lc::ui; using namespace lc::viewer; LCADModelViewer::LCADModelViewer(QWidget* parent,int id = 0):LCADViewer(parent),_id(id) { - _gradientBackground = std::make_shared(lc::Color(0x07, 0x15, 0x11), lc::Color(0x06, 0x35, 0x06)); + _gradientBackground = std::make_shared(lc::Color(0x07, 0x15, 0xe1), lc::Color(0x06, 0x35, 0x06)); _grid = std::make_shared(20, lc::Color(0x40, 0x48, 0x40), lc::Color(0x80, 0x90, 0x80)); _cursor = std::make_shared(40, this->documentCanvas(), lc::Color(0xff, 0x00, 0x00), lc::Color(0x00, 0xff, 0x00)); connect(this, SIGNAL(mouseMoveEvent()), this, SLOT(onMouseMoveEvent())); @@ -42,4 +42,4 @@ void LCADModelViewer::setDocument(std::shared_ptr documen void LCADModelViewer::onMouseMoveEvent() { emit setActive(_id); -}; \ No newline at end of file +}; diff --git a/lcviewernoqt/documentcanvas.cpp b/lcviewernoqt/documentcanvas.cpp index fc8163c20..0b2fc3a70 100644 --- a/lcviewernoqt/documentcanvas.cpp +++ b/lcviewernoqt/documentcanvas.cpp @@ -416,6 +416,7 @@ void DocumentCanvas::drawCachedEntity(LcPainter& painter, const LCVDrawItem_CSPt painter.save(); // Decide what color to render the entity into auto color = drawColor(ce, insert, drawable->selected()); + std::cout<<"color="<