Skip to content

Commit

Permalink
Add styles for webots classic, dusk and dark mode (#6711)
Browse files Browse the repository at this point in the history
Add styles for Webots classic, dusk and dark mode
  • Loading branch information
MNikoliCC authored Nov 29, 2024
1 parent 67ff848 commit 02784bb
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/reference/changelog-r2024.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Released on December **th, 2023.
- Added the ability to query the field in the scene tree that corresponds to a proto internal field.
- Fixed the method signature of `wb_supervisor_node_get_number_of_fields` in MATLAB.
- Removed support for Lua as a PROTO scripting language ([#6642](https://github.com/cyberbotics/webots/pull/6642)).
- Adapt QtToolTip text box for every Webots mode ([#6711](https://github.com/cyberbotics/webots/pull/6711)).
- Enhancements
- Improved the image range of the rotating [Lidar](lidar.md) ([#6324](https://github.com/cyberbotics/webots/pull/6324)).
- Show box-plane contact point normals when showing contact points ([#6678](https://github.com/cyberbotics/webots/pull/6678)).
Expand Down Expand Up @@ -45,3 +46,4 @@ Released on December **th, 2023.
- Fixed a bug where Webots would crash if a geometry was inserted into a `Shape` node used a bounding box ([#6691](https://github.com/cyberbotics/webots/pull/6691)).
- Removed the old `wb_supervisor_field_import_sf_node` and `wb_supervisor_field_import_mf_node` functions from the list of editor autocomplete suggestions ([#6701](https://github.com/cyberbotics/webots/pull/6701)).
- Fixed handling of remote assets from unofficial sources ([#6585](https://github.com/cyberbotics/webots/pull/6585)).
- Fixed the QtToolTip bug, where the text in the text box is not being displayed ([#6711](https://github.com/cyberbotics/webots/pull/6711)).
9 changes: 9 additions & 0 deletions resources/webots_classic.qss
Original file line number Diff line number Diff line change
Expand Up @@ -932,3 +932,12 @@ QProgressBar::chunk {
background: #308cc6;
border-radius: 3px;
}

QToolTip {
background-color: #f5f5f5;
color: #000;
border: 1px solid #ccc;
padding: 4px;
border-radius: 4px;
font-size: 12px;
}
10 changes: 10 additions & 0 deletions resources/webots_dusk.qss
Original file line number Diff line number Diff line change
Expand Up @@ -932,3 +932,13 @@ QProgressBar::chunk {
background: #61e2a8;
border-radius: 3px;
}

QToolTip {
background-color: #33333f;
color: #fff;
border: 1px solid #41f4c1;
padding: 4px;
border-radius: 6px;
font-size: 12px;
font-family: Arial, sans-serif;
}
9 changes: 9 additions & 0 deletions resources/webots_night.qss
Original file line number Diff line number Diff line change
Expand Up @@ -932,3 +932,12 @@ QProgressBar::chunk {
background: #9b93ff;
border-radius: 3px;
}

QToolTip {
background-color: #22222a;
color: #fff;
border: 1px solid #a98dff;
padding: 4px;
border-radius: 4px;
font-size: 12px;
}

0 comments on commit 02784bb

Please sign in to comment.