Commit Graph

53 Commits

Author SHA1 Message Date
Oleksandra Yushchenko
a41a214584 MSW specific: Implementation of the own notebook control
* MSW specific: First implementation of the Notebook control to support Dark/Light color modes

* MSW specific: Set mode sizer to the Notebook control.

* MSW specific: Added icons to the Notepad control
 + There is no need to restart application after the changing of the color mode

* Fixed non-MSW build

* Updated color for SavePresetDialog
+ Added wrapper to wxMessageBox for mom-MSW platforms
2021-06-29 16:23:45 +02:00
Oleksandra Yushchenko
ffd33d6494 DarkMode for MSW (#6632)
* MSW specific: Dark Mode: First implementation

* Use menu instead of NoteBook

* Implemented MessageDialog
+ Fixed DarkMode for all dialogs and ColorPicker

* MSW DarkMode: Added missed updates for the switching between modes

* MSW DarkMode: Updated all existed context menus after switching of the mode
+ Added markers for the menu item witch is related to the selected tab

* Used wxFrame instead of wxDialog for SettingsDialog
(this change allow us to use menu bar in SettingsDialog)

+ fix for #6548 - Prusa Slicer 2.3.1 not activating non-modal settings window if settings window is minimized

* Implemented "Always use Dark mode colors" preference option

* Fixes for non_MSW build

* Next fixes for non-MSW builds

* Preferences: Fixed selection of the Settings Layout for non-MSW platforms
+ Updated DarkMode for colorpickers

* Windows DarkMode next fixes

* MSWDarkMode: Suppress to use system color to the PrusaSlicer
Select "Preferences -> Use Dark color mode (experimental)" to allow dark mode for the application

* Fixed MSW build

* MSWDarkMode: Upadteed color mode for ExtruderSequenceDialog and for dialogs related to the DoubleSlider

* Implemented Auto recreation of the PrusaSlicer when color mode is changed.

* Preferences: Added option "Set settings tabs as menu items (experimental)"
2021-06-18 19:46:04 +02:00
enricoturri1966
c7f69edd10 Tech ENABLE_WX_3_1_3_DPI_CHANGED_EVENT set as default 2021-02-25 12:40:42 +01:00
YuSanka
893db4d89b OSX specific, related to the wxWidgets 3.1.4: Fixed wrong UI-scaling
(wxWidgets 3.1.4 can binding of wxEVT_DPI_CHANGED now, so it was called msw_rescale() for most of the controls redundantly)

+ Fixed update of the DoubleSlider after changing of the system color
2021-01-22 21:44:15 +01:00
enricoturri1966
ab2f4f6766 ENABLE_GCODE_VIEWER set as default in:
SysInfoDialog.cpp

Selection hpp/cpp

Preferences.cpp

GUI_Utils.hpp

KBShortcutsDialog.cpp
2020-11-18 13:04:34 +01:00
YuSanka
649d2aad72 Fixed a Dialog position under OSX
Always set parent for the Dialog, if we want to see the Dialog in the same display as a parent.
Dialog will be shown in the primary monitor otherwise.

+ fixed a draw of the canvas legend when we move application between Retina and non-Retina displays
2020-11-05 11:53:16 -08:00
Lukas Matena
0d90082b9f Fixed missing include on Linux, printf format string fix
boost/format.hpp was missing in the header
2020-10-02 09:32:50 +02:00
Vojtech Bubnik
fddbd20570 Merge branch 'master' of https://github.com/Prusa3d/PrusaSlicer 2020-10-01 20:12:50 +02:00
Vojtech Bubnik
75bc8f6d2c Merge branch 'vb_optgroup_refact' 2020-10-01 20:05:31 +02:00
Lukas Matena
d6deb1b9f4 Fixed compilation with wxWidgets 3.0 2020-09-30 17:33:08 +02:00
bubnikv
b3b989158a Fixes of DPI scaling on Windows. 2020-09-30 14:02:23 +02:00
YuSanka
247e9825a4 Fixed highlighting of the searched option
+ Create controls only on the shown and active tab
+ Line class : deleted unused sizer
+ In GUI_Utils added TaskTimer class for the print a time of some task duration
+ BedShapeDialog:: activated options_groups
+ commented some unused code
2020-09-24 15:41:48 +02:00
YuSanka
57e106672c Fixed Scale on Linux 2020-09-08 15:20:12 +02:00
YuSanka
33f5e2c583 Code cleaning.
+ Use default DPIfont for wxHtmlWindows
2020-09-04 13:01:02 +02:00
YuSanka
26db711bf9 Fixed rescale of the MainFrame/SettingsDialog after switching between settings layouts on the 2 monitors with different DPI 2020-09-04 10:08:54 +02:00
YuSanka
d5b16a182e Fix of Settings scaling when they are placed in non-modal Dialog 2020-09-03 15:40:14 +02:00
enricoturri1966
5523d4c87d Fixed conflicts after merge with master 2020-08-03 14:17:40 +02:00
enricoturri1966
c4c306fd50 Tech ENABLE_LAYOUT_NO_RESTART set as default 2020-08-03 11:08:17 +02:00
enricoturri1966
4cf9ef8334 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_gcode_viewer 2020-06-19 12:51:05 +02:00
enricoturri1966
505fe19b1c Follow-up of e782d34ec8 -> Fix in DPIAware::rescale() 2020-06-19 12:48:01 +02:00
enricoturri1966
f6241fed50 Fixed conflict after merge with master 2020-06-19 11:49:59 +02:00
enricoturri1966
6aba79e68e ENABLE_LAYOUT_NO_RESTART -> Fixed font scaling when switching to non modal setting dialog layout when building against wxWidgets 3.1.3 2020-06-19 11:18:48 +02:00
enricoturri1966
1d17cf8c1c ENABLE_LAYOUT_NO_RESTART -> Fixed font scaling when switching to/from non modal setting dialog layout when building against wxWidgets prior to 3.1.3 2020-06-19 11:04:08 +02:00
enricoturri1966
b29ac59fc1 Follow-up of dcf68aefd7 - disable old from builds against wxWidgets 3.1.3 2020-06-16 08:15:36 +02:00
enricoturri1966
f49391c981 Enable built-in DPI changed event handler when building against wxWidgets 3.1.3 2020-06-15 16:20:34 +02:00
enricoturri1966
250687b71a Fixed conflicts after merge with master 2020-06-12 10:35:18 +02:00
enricoturri1966
2e1ca57da0 Fixed restoring of application starting position 2020-06-11 16:07:28 +02:00
enricoturri1966
b1e7a40c3e Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_gcode_viewer 2020-05-22 12:12:56 +02:00
YuSanka
6b2c67c7b0 Changed processing of a wxEVT_SYS_COLOUR_CHANGED event.
Only UI is updated. The application doesn't recreated now
2020-05-21 17:29:00 +02:00
enricoturri1966
f890470c58 GCodeViewer -> Extrusion toolpaths colored by tool 2020-04-21 15:55:26 +02:00
bubnikv
4cd1243a79 Windows specific refactoring of Mouse3DController and RemovableDriveManager.
PrusaSlicer newly registers by Windows operating system for HID USB
plug / unplug notifications and for Volume attach / detach notifications,
and the background threads of the two respective services are waken up
on these Windows notifications.
The RemovableDriveManager also wakes up every 30 seconds to cope with
the drives ejected from Windows Explorer or from another application,
for example Cura, for which Windows OS does not send out notifications.
2020-03-13 14:19:14 +01:00
Vojtech Kral
73184864bb Fix: Rename DPI changed event to not clash with impl in wxwidgets 2019-11-11 17:10:29 +01:00
YuSanka
c6c20ca19b Code cleaning and last msw_rescale() improvements 2019-06-19 11:38:42 +02:00
YuSanka
98c11164b8 Experiments with msw_rescale fixing 2019-06-18 18:02:40 +02:00
bubnikv
2c553fcf9c Fixed rare font scaling issue on Windows 10. 2019-05-17 13:15:32 +02:00
YuSanka
6d0b50b21c Fix of #2249 2019-05-16 13:16:43 +02:00
YuSanka
c65254fcc2 em_unit initialization in one place (DPIAware constructor) 2019-05-15 16:44:33 +02:00
bubnikv
b4010d58c9 Improvements of High DPI scaling on Windows. 2019-05-06 18:28:23 +02:00
bubnikv
d5cbbbc7f7 Another missing include 2019-04-18 17:16:31 +02:00
YuSanka
895d6874b7 Overrided on_dpi_changed() for some Dialogs:
AboutDialog, ConfigSnapshotDialog, FirmwareDialog, SysInfoDialog

+ set correct fonts for KBShortcutsDialog
2019-04-18 15:05:17 +02:00
YuSanka
687b998f23 Code refactoring 2019-04-17 12:49:10 +02:00
YuSanka
e5d0af695d Fixed crash of build under OSX and Linux.
+ Added flag to control if application rescale is possible
2019-04-16 17:06:28 +02:00
YuSanka
580b1bc5de First scaling experiments 2019-04-10 09:57:33 +02:00
Vojtech Kral
989aaf086c Implement per-screen DPI on Windows, DPI change event, wxDialog & wxFrame mixin base classes 2019-04-08 11:34:46 +02:00
Vojtech Kral
73c4a0e10d Fix build on MSVC with PCH off 2019-03-27 12:14:34 +01:00
Vojtech Kral
5e4e98f1d8 ConfigWizard: Bugfixes 2019-02-12 10:11:00 +01:00
Vojtech Kral
61b1ab2647 Fix window geometry persistence #1557 2019-01-21 14:56:23 +01:00
Vojtech Kral
c26e48943f Fix wxNotebook event incontinence 2018-11-28 19:26:48 +01:00
Vojtech Kral
6f3e386e85 Cutting 2018-11-18 21:20:47 +01:00
Vojtech Kral
90cad5196c Fix CheckboxFileDialog, for real this time (I hope) 2018-10-19 15:13:20 +02:00