- the Y axis labels are now rotated at 45 degrees allowing better space management

- changed the HUD color, with Light theme, to gray
This commit is contained in:
Marius Stanciu
2021-08-31 00:07:54 +03:00
committed by Marius
parent 2b40ba1c5f
commit a7d790ef7c
3 changed files with 5 additions and 1 deletions

View File

@@ -15,6 +15,8 @@ CHANGELOG for FlatCAM beta
- modified a patch for VisPy Infinite Line Visual that set the line width, in order to make it compliant with newer versions of OpenGL - modified a patch for VisPy Infinite Line Visual that set the line width, in order to make it compliant with newer versions of OpenGL
- add HUD rectangle auto size for 3D Graphic Engine - add HUD rectangle auto size for 3D Graphic Engine
- add HUD rectangle auto size for 2D Graphic Engine - add HUD rectangle auto size for 2D Graphic Engine
- the Y axis labels are now rotated at 45 degrees allowing better space management
- changed the HUD color, with Light theme, to gray
29.08.2021 29.08.2021

View File

@@ -58,7 +58,8 @@ class PlotCanvas(QtCore.QObject, VisPyCanvas):
if theme == 'white': if theme == 'white':
self.line_color = (0.3, 0.0, 0.0, 1.0) self.line_color = (0.3, 0.0, 0.0, 1.0)
self.rect_hud_color = Color('#0000FF10') # self.rect_hud_color = Color('#0000FF10')
self.rect_hud_color = Color('#80808040')
self.text_hud_color = 'black' self.text_hud_color = 'black'
else: else:
self.line_color = (0.4, 0.4, 0.4, 1.0) self.line_color = (0.4, 0.4, 0.4, 1.0)

View File

@@ -65,6 +65,7 @@ class VisPyCanvas(scene.SceneCanvas):
orientation='left', axis_color=tick_color, text_color=tick_color, font_size=a_fsize, axis_width=1 orientation='left', axis_color=tick_color, text_color=tick_color, font_size=a_fsize, axis_width=1
) )
self.yaxis.width_max = 55 self.yaxis.width_max = 55
self.yaxis.axis._text.rotation = 45
self.grid_widget.add_widget(self.yaxis, row=1, col=0) self.grid_widget.add_widget(self.yaxis, row=1, col=0)
self.xaxis = scene.AxisWidget( self.xaxis = scene.AxisWidget(