Skip to content

Commit 9fe1955

Browse files
emilkjustusdieckmann
authored andcommitted
Release 0.27.1 (emilk#4264)
## egui changelog ### 🐛 Fixed * Fix visual glitch on the right side of highly rounded rectangles [emilk#4244](emilk#4244) * Prevent visual glitch when shadow blur width is very high [emilk#4245](emilk#4245) * Fix `InputState::any_touches` and add `InputState::has_touch_screen` [emilk#4247](emilk#4247) * Fix `Context::repaint_causes` returning no causes [emilk#4248](emilk#4248) * Fix touch-and-hold to open context menu [emilk#4249](emilk#4249) * Hide shortcut text on zoom buttons if `zoom_with_keyboard` is false [emilk#4262](emilk#4262) ### 🔧 Changed * Don't apply a clip rect to the contents of an `Area` or `Window` [emilk#4258](emilk#4258) ## eframe changelog * Web: repaint if the `#hash` in the URL changes [emilk#4261](emilk#4261) * Add web support for `zoom_factor` [emilk#4260](emilk#4260) (thanks [@justusdieckmann](https://github.com/justusdieckmann)!) --------- Co-authored-by: Justus Dieckmann <45795270+justusdieckmann@users.noreply.github.com>
1 parent 36d6213 commit 9fe1955

File tree

12 files changed

+107
-41
lines changed

12 files changed

+107
-41
lines changed

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@ Changes since the last release can be found at <https://github.com/emilk/egui/co
99
# Unreleased
1010
* Fixed menubar in macOS
1111

12+
## 0.27.1 - 2024-03-29
13+
### 🐛 Fixed
14+
* Fix visual glitch on the right side of highly rounded rectangles [#4244](https://github.com/emilk/egui/pull/4244)
15+
* Prevent visual glitch when shadow blur width is very high [#4245](https://github.com/emilk/egui/pull/4245)
16+
* Fix `InputState::any_touches` and add `InputState::has_touch_screen` [#4247](https://github.com/emilk/egui/pull/4247)
17+
* Fix `Context::repaint_causes` returning no causes [#4248](https://github.com/emilk/egui/pull/4248)
18+
* Fix touch-and-hold to open context menu [#4249](https://github.com/emilk/egui/pull/4249)
19+
* Hide shortcut text on zoom buttons if `zoom_with_keyboard` is false [#4262](https://github.com/emilk/egui/pull/4262)
20+
21+
### 🔧 Changed
22+
* Don't apply a clip rect to the contents of an `Area` or `Window` [#4258](https://github.com/emilk/egui/pull/4258)
23+
24+
1225
## 0.27.0 - 2024-03-26 - Nicer menus and new hit test logic
1326
The hit test logic (what is the user clicking on?) has been completely rewritten, and should now be much more accurate and helpful.
1427
The hit test and interaction logic is run at the start of the frame, using the widgets rects from the previous frame, but the latest mouse coordinates.

Cargo.lock

+12-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+12-12
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ members = [
2020
edition = "2021"
2121
license = "MIT OR Apache-2.0"
2222
rust-version = "1.72"
23-
version = "0.27.0"
23+
version = "0.27.1"
2424

2525

2626
[profile.release]
@@ -48,17 +48,17 @@ opt-level = 2
4848

4949

5050
[workspace.dependencies]
51-
emath = { version = "0.27.0", path = "crates/emath", default-features = false }
52-
ecolor = { version = "0.27.0", path = "crates/ecolor", default-features = false }
53-
epaint = { version = "0.27.0", path = "crates/epaint", default-features = false }
54-
egui = { version = "0.27.0", path = "crates/egui", default-features = false }
55-
egui_plot = { version = "0.27.0", path = "crates/egui_plot", default-features = false }
56-
egui-winit = { version = "0.27.0", path = "crates/egui-winit", default-features = false }
57-
egui_extras = { version = "0.27.0", path = "crates/egui_extras", default-features = false }
58-
egui-wgpu = { version = "0.27.0", path = "crates/egui-wgpu", default-features = false }
59-
egui_demo_lib = { version = "0.27.0", path = "crates/egui_demo_lib", default-features = false }
60-
egui_glow = { version = "0.27.0", path = "crates/egui_glow", default-features = false }
61-
eframe = { version = "0.27.0", path = "crates/eframe", default-features = false }
51+
emath = { version = "0.27.1", path = "crates/emath", default-features = false }
52+
ecolor = { version = "0.27.1", path = "crates/ecolor", default-features = false }
53+
epaint = { version = "0.27.1", path = "crates/epaint", default-features = false }
54+
egui = { version = "0.27.1", path = "crates/egui", default-features = false }
55+
egui_plot = { version = "0.27.1", path = "crates/egui_plot", default-features = false }
56+
egui-winit = { version = "0.27.1", path = "crates/egui-winit", default-features = false }
57+
egui_extras = { version = "0.27.1", path = "crates/egui_extras", default-features = false }
58+
egui-wgpu = { version = "0.27.1", path = "crates/egui-wgpu", default-features = false }
59+
egui_demo_lib = { version = "0.27.1", path = "crates/egui_demo_lib", default-features = false }
60+
egui_glow = { version = "0.27.1", path = "crates/egui_glow", default-features = false }
61+
eframe = { version = "0.27.1", path = "crates/eframe", default-features = false }
6262

6363
#TODO(emilk): make more things workspace dependencies
6464
ahash = { version = "0.8.6", default-features = false, features = [

crates/ecolor/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ This file is updated upon each release.
66
Changes since the last release can be found at <https://github.com/emilk/egui/compare/latest...HEAD> or by running the `scripts/generate_changelog.py` script.
77

88

9+
## 0.27.1 - 2024-03-29
10+
* Nothing new
11+
12+
913
## 0.27.0 - 2024-03-26
1014
* Nothing new
1115

crates/eframe/CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ This file is updated upon each release.
77
Changes since the last release can be found at <https://github.com/emilk/egui/compare/latest...HEAD> or by running the `scripts/generate_changelog.py` script.
88

99

10+
## 0.27.1 - 2024-03-29
11+
* Web: repaint if the `#hash` in the URL changes [#4261](https://github.com/emilk/egui/pull/4261)
12+
* Add web support for `zoom_factor` [#4260](https://github.com/emilk/egui/pull/4260) (thanks [@justusdieckmann](https://github.com/justusdieckmann)!)
13+
14+
1015
## 0.27.0 - 2024-03-26
1116
* Update to document-features 0.2.8 [#4003](https://github.com/emilk/egui/pull/4003)
1217
* Added `App::raw_input_hook` allows for the manipulation or filtering of raw input events [#4008](https://github.com/emilk/egui/pull/4008) (thanks [@varphone](https://github.com/varphone)!)

crates/egui-wgpu/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ This file is updated upon each release.
66
Changes since the last release can be found at <https://github.com/emilk/egui/compare/latest...HEAD> or by running the `scripts/generate_changelog.py` script.
77

88

9+
## 0.27.1 - 2024-03-29
10+
* Nothing new
11+
12+
913
## 0.27.0 - 2024-03-26
1014
* Improve panic message in egui-wgpu when failing to create buffers [#3986](https://github.com/emilk/egui/pull/3986)
1115

crates/egui-winit/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ This file is updated upon each release.
55
Changes since the last release can be found at <https://github.com/emilk/egui/compare/latest...HEAD> or by running the `scripts/generate_changelog.py` script.
66

77

8+
## 0.27.1 - 2024-03-29
9+
* Nothing new
10+
11+
812
## 0.27.0 - 2024-03-26
913
* Update memoffset to 0.9.0, arboard to 3.3.1, and remove egui_glow's needless dependency on pure_glow's deps [#4036](https://github.com/emilk/egui/pull/4036) (thanks [@Nopey](https://github.com/Nopey)!)
1014
* Don't clear modifier state on focus change [#4157](https://github.com/emilk/egui/pull/4157) (thanks [@ming08108](https://github.com/ming08108)!)

crates/egui_extras/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ This file is updated upon each release.
55
Changes since the last release can be found at <https://github.com/emilk/egui/compare/latest...HEAD> or by running the `scripts/generate_changelog.py` script.
66

77

8+
## 0.27.1 - 2024-03-29
9+
* Nothing new
10+
11+
812
## 0.27.0 - 2024-03-26
913
* Add scroll bar visibility option to `Table` widget [#3981](https://github.com/emilk/egui/pull/3981) (thanks [@richardhozak](https://github.com/richardhozak)!)
1014
* Update `ehttp` to 0.5 [#4055](https://github.com/emilk/egui/pull/4055)

crates/egui_glow/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ Changes since the last release can be found at <https://github.com/emilk/egui/co
66

77

88

9+
## 0.27.1 - 2024-03-29
10+
* Nothing new
11+
12+
913
## 0.27.0 - 2024-03-26
1014
* Only disable sRGB framebuffer on supported platforms [#3994](https://github.com/emilk/egui/pull/3994) (thanks [@Nopey](https://github.com/Nopey)!)
1115
* Update memoffset to 0.9.0, arboard to 3.3.1, and remove egui_glow's needless dependency on pure_glow's deps [#4036](https://github.com/emilk/egui/pull/4036) (thanks [@Nopey](https://github.com/Nopey)!)

crates/egui_plot/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ This file is updated upon each release.
55
Changes since the last release can be found at <https://github.com/emilk/egui/compare/latest...HEAD> or by running the `scripts/generate_changelog.py` script.
66

77

8+
## 0.27.1 - 2024-03-29
9+
* Nothing new
10+
11+
812
## 0.27.0 - 2024-03-26
913
* Add `sense` option to `Plot` [#4052](https://github.com/emilk/egui/pull/4052) (thanks [@AmesingFlank](https://github.com/AmesingFlank)!)
1014
* Plot widget - allow disabling scroll for x and y separately [#4051](https://github.com/emilk/egui/pull/4051) (thanks [@YgorSouza](https://github.com/YgorSouza)!)

crates/epaint/CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ This file is updated upon each release.
55
Changes since the last release can be found at <https://github.com/emilk/egui/compare/latest...HEAD> or by running the `scripts/generate_changelog.py` script.
66

77

8+
## 0.27.1 - 2024-03-29
9+
* Fix visual glitch on the right side of highly rounded rectangles [#4244](https://github.com/emilk/egui/pull/4244)
10+
* Prevent visual glitch when shadow blur width is very high [#4245](https://github.com/emilk/egui/pull/4245)
11+
12+
813
## 0.27.0 - 2024-03-26
914
* Add `ColorImage::from_gray_iter` [#3536](https://github.com/emilk/egui/pull/3536) (thanks [@wangxiaochuTHU](https://github.com/wangxiaochuTHU)!)
1015
* Convenience const fn for `Margin`, `Rounding` and `Shadow` [#4080](https://github.com/emilk/egui/pull/4080) (thanks [@0Qwel](https://github.com/0Qwel)!)

scripts/generate_changelog.py

+36-17
Original file line numberDiff line numberDiff line change
@@ -115,18 +115,22 @@ def print_section(crate: str, items: List[str]) -> None:
115115
print()
116116

117117

118+
def changelog_filepath(crate: str) -> str:
119+
scripts_dirpath = os.path.dirname(os.path.realpath(__file__))
120+
if crate == "egui":
121+
file_path = f"{scripts_dirpath}/../CHANGELOG.md"
122+
else:
123+
file_path = f"{scripts_dirpath}/../crates/{crate}/CHANGELOG.md"
124+
return os.path.normpath(file_path)
125+
126+
118127
def add_to_changelog_file(crate: str, items: List[str], version: str) -> None:
119128
insert_text = f"\n## {version} - {date.today()}\n"
120129
for item in items:
121130
insert_text += f"* {item}\n"
122131
insert_text += "\n"
123132

124-
scripts_dirpath = os.path.dirname(os.path.realpath(__file__))
125-
if crate == "egui":
126-
file_path = f"{scripts_dirpath}/../CHANGELOG.md"
127-
else:
128-
file_path = f"{scripts_dirpath}/../crates/{crate}/CHANGELOG.md"
129-
file_path = os.path.normpath(file_path)
133+
file_path = changelog_filepath(crate)
130134

131135
with open(file_path, 'r') as file:
132136
content = file.read()
@@ -151,6 +155,28 @@ def main() -> None:
151155
print("ERROR: --version is required when --write is used")
152156
sys.exit(1)
153157

158+
crate_names = [
159+
"ecolor",
160+
"eframe",
161+
"egui_extras",
162+
"egui_plot",
163+
"egui_glow",
164+
"egui-wgpu",
165+
"egui-winit",
166+
"egui",
167+
"epaint",
168+
]
169+
170+
# We read all existing changelogs to remove duplicate entries.
171+
# For instance: the PRs that were part of 0.27.2 would also show up in the diff for `0.27.0..HEAD`
172+
# when its time for a 0.28 release. We can't do `0.27.2..HEAD` because we would miss PRs that were
173+
# merged before in `0.27.0..0.27.2` that were not cherry-picked into `0.27.2`.
174+
all_changelogs = ""
175+
for crate in crate_names:
176+
file_path = changelog_filepath(crate)
177+
with open(file_path, 'r') as file:
178+
all_changelogs += file.read()
179+
154180
repo = Repo(".")
155181
commits = list(repo.iter_commits(args.commit_range))
156182
commits.reverse() # Most recent last
@@ -167,17 +193,6 @@ def main() -> None:
167193

168194
ignore_labels = ["CI", "dependencies"]
169195

170-
crate_names = [
171-
"ecolor",
172-
"eframe",
173-
"egui_extras",
174-
"egui_plot",
175-
"egui_glow",
176-
"egui-wgpu",
177-
"egui-winit",
178-
"egui",
179-
"epaint",
180-
]
181196
sections = {}
182197
unsorted_prs = []
183198
unsorted_commits = []
@@ -193,6 +208,10 @@ def main() -> None:
193208
summary = f"{title} [{hexsha[:7]}](https://github.com/{OWNER}/{REPO}/commit/{hexsha})"
194209
unsorted_commits.append(summary)
195210
else:
211+
if f"[#{pr_number}]" in all_changelogs:
212+
print(f"Ignoring PR that is already in the changelog: #{pr_number}")
213+
continue
214+
196215
# We prefer the PR title if available
197216
title = pr_info.pr_title if pr_info else title
198217
labels = pr_info.labels if pr_info else []

0 commit comments

Comments
 (0)