Measure Line colour and text size

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
NHSA_Rainer
Posts: 104
Joined: Mon Aug 30, 2021 3:37 pm

Measure Line colour and text size

Post by NHSA_Rainer »

Hi,

I have been searching for a while but did not find anything and so I ask here.

How can I change the colour Green and Red of the measure lines and is there a way to change the font thickness to bold ?

Thanks Rainer

Change_Measure_Line_Colour.JPG
Change_Measure_Line_Colour.JPG (34.88 KiB) Viewed 1332 times

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: Spanish/Latin America (es_419)
Installed mods: 
  * fcgear
  * ThreadProfile
User avatar
Shalmeneser
Veteran
Posts: 9475
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Measure Line colour and text size

Post by Shalmeneser »

Always a good idea to provide a file (helpers need sometime to play with something real).
NHSA_Rainer
Posts: 104
Joined: Mon Aug 30, 2021 3:37 pm

Re: Measure Line colour and text size

Post by NHSA_Rainer »

Shalmeneser wrote: Wed Jun 22, 2022 11:22 pm Always a good idea to provide a file (helpers need sometime to play with something real).
Sorry. Here it is
Nema17_enfocador.FCStd
(710.78 KiB) Downloaded 18 times
User avatar
Shalmeneser
Veteran
Posts: 9475
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Measure Line colour and text size

Post by Shalmeneser »

Sorry but measure will dissappear when closing the file :oops:

Part_Measure_Linear
Description
This tool measures the distance between two selected topology elements (vertex, edge, face) and displays the measurement in the 3D view. The shortest distance between the two elements is shown in red, and delta measurements (distances parallel to standard X, Y, Z axes) are shown in green.
NHSA_Rainer
Posts: 104
Joined: Mon Aug 30, 2021 3:37 pm

Re: Measure Line colour and text size

Post by NHSA_Rainer »

Hi,

I really just want to know if I can change the colours of the lines and the text size.

Those colours are hard to read and the text too as it is so fine.

Thanks
Bance
Veteran
Posts: 4186
Joined: Wed Feb 11, 2015 3:00 pm
Location: London

Re: Measure Line colour and text size

Post by Bance »

I don't think it's customisable, that's what shalm was trying to say.

There were some efforts towards a colour scheme for common colour blindness (Sorry I don't know how else to phrase that.)

You would need to search the forum.
vm4dim
Posts: 129
Joined: Tue Nov 23, 2021 1:05 am

Re: Measure Line colour and text size

Post by vm4dim »

Color may be changed

https://github.com/FreeCAD/FreeCAD/blob ... #L246-L250

Code: Select all

    GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("View");
  App::Color c(1.0,0.0,0.0);
  c.fromHexString(group->GetASCII("Dimensions3dColor", c.asHexString().c_str()));
  App::Color d(0.0,1.0,0.0);
  d.fromHexString(group->GetASCII("DimensionsDeltaColor", d.asHexString().c_str()));
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Measure Line colour and text size

Post by thomas-neemann »

NHSA_Rainer wrote: Wed Jun 22, 2022 11:37 pm ...
I really just want to know if I can change the colours of the lines and the text size.

Those colours are hard to read and the text too as it is so fine.

...
if you change the background color and body color/transparency and reduce the screen resolution, it could get better
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
NHSA_Rainer
Posts: 104
Joined: Mon Aug 30, 2021 3:37 pm

Re: Measure Line colour and text size

Post by NHSA_Rainer »

if you change the background color and body color/transparency and reduce the screen resolution, it could get better
Hi,

Thanks everybody and so I think as I read somewhere this is a so called hardcoded issue and well will have to live with it :(

And really am I the only one having trouble reading the measure lines ? :mrgreen:
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Measure Line colour and text size

Post by adrianinsaval »

vm4dim wrote: Thu Jun 23, 2022 12:03 am Color may be changed

https://github.com/FreeCAD/FreeCAD/blob ... #L246-L250

Code: Select all

    GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("View");
  App::Color c(1.0,0.0,0.0);
  c.fromHexString(group->GetASCII("Dimensions3dColor", c.asHexString().c_str()));
  App::Color d(0.0,1.0,0.0);
  d.fromHexString(group->GetASCII("DimensionsDeltaColor", d.asHexString().c_str()));
but how to set those parameters? freecad's way of saving color parameters has always been weird
Post Reply