Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Applying the color of the layer to the block does not work #1720

Open
kberkut opened this issue Dec 31, 2023 · 5 comments
Open

Applying the color of the layer to the block does not work #1720

kberkut opened this issue Dec 31, 2023 · 5 comments

Comments

@kberkut
Copy link

kberkut commented Dec 31, 2023

Expected behavior

Changing the color of the layer should result in a change in the color of the block lines

Observed behavior

Changing the color of the layer does not affect the color change of the block lines

Steps to play or select a file

Insert any shape from the block library.
Move the shape to another layer with a different layer color.

Information about the operating system and version of LibreCAD

Version: 2.2.0-undef
Compiler: GNU GCC 13.2.1
Compiled on: Nov 7 2023
Qt Version: 5.15.11
Boost Version: 1.83.0
System: Arch Linux

OS: Arch Linux x86_64
Kernel: 6.6.8-arch1-1
DE: GNOME 45.2
CPU: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx (8) @ 2.100GHz
GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series
Memory: 4264MiB / 9884MiB

@lordofbikes
Copy link
Member

Works for me, e.g. with misc/tux block from deployed libraries.
Insert to layer 0 results in white lines, move block to layer 1 (green), results in a green tux.

You should check the attributes of the block entities in the block editor.
When the color is set fixed, it does not change to the layer attributes.
I'm not sure what BY BLOCK color attribute will give.
But for the expected color change the block entities color should be set to BY LAYER.

@kberkut
Copy link
Author

kberkut commented Dec 31, 2023

In the properties of the blocks, everything is set by layer. But the color is not applied.

@dongxuli-concord-design

Our block features need a code review anyway. I am too busy now to allocate some solid time here.

It's probably the last item for a new stable release. After that, we should switch to qt6.

@kberkut
Copy link
Author

kberkut commented Jan 1, 2024

I found out some special feature. Colors are not applied to embedded libraries installed with LibreCAD. But they are used for user-connected libraries that are specified in the settings.

@rola22
Copy link

rola22 commented Jan 12, 2024

Hi.
I am currently on LibreCAD 2.2.0.2-5-g3aa2c41c and everything works like in commercial CAD software:

  • if geometry color in block is set to By Layer, entire block color will follow layer color
  • if geometry is set to By Block, then again block will follow layer color, but it can be overriden in properties
  • if part of geometry is set to By Layer and another part is set to By Block it will combine both behaviors

I will check later if it works the same in master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants