Robert Broketa
c3c7765f80
Add no-frame
property for a borderless/frameless window
2021-10-11 10:21:21 +02:00
Olivier Goffart
503a9b3722
Avoid spurious "cancel" event sent to TouchArea.pointer-event
2021-10-11 10:19:59 +02:00
Olivier Goffart
40e0698373
TouchArea: Grab the mouse regardless of the button
2021-10-11 10:19:59 +02:00
Olivier Goffart
396820243d
Fix typo and size in the sysinfo script
...
(The default size was too small to see the picture on my machine because of
the long CPU string)
2021-10-08 19:22:30 +02:00
Olivier Goffart
b0c87cb089
Fix the middle mouse button with Qt
2021-10-08 17:30:15 +02:00
Olivier Goffart
85772d5bc5
Fix extra '}' when doing a debug()
with an enum.
...
The code was copy-pasted from the code that output the structs
2021-10-08 17:29:32 +02:00
Olivier Goffart
3b6e0e5802
Fixes the PointerEvent.kind always being down
...
Fixes #558
2021-10-08 16:56:35 +02:00
Simon Hausmann
2983ae48c4
Remove unnecessary dependency
2021-10-08 10:02:02 +02:00
Simon Hausmann
39a713c2e7
Update examples/bash/README.md
...
Mention the sysinfo scripts
Co-authored-by: Olivier Goffart <ogoffart@sixtyfps.io>
2021-10-08 09:33:09 +02:00
Simon Hausmann
0c4da4809f
Split out the memory into a separate tab
...
and add some more information about memory and swap
2021-10-08 09:33:09 +02:00
Simon Hausmann
bcf4f2b3de
Add an icon to the general tab
2021-10-08 09:33:09 +02:00
Philipp Gesang
f916ca4124
Bound Text contents width
...
The contents of a Text would wander to the left with center and
right alignment because some size calculations don't take the
maximum available width into account.
2021-10-08 08:05:42 +02:00
Olivier Goffart
b99ff1b766
Put filename in quote in import errors
...
So that the `debug_assert!` that fires when a error message ends with a
period does not crash the LSP when typing an incomplete filename that ends
with a '.'
2021-10-07 14:44:12 +02:00
Olivier Goffart
98e1bb19db
Document the current-index property of the TabWidget
2021-10-07 12:21:11 +02:00
ogoffart
77fcd5221b
Bump version number to 0.1.4
2021-10-07 09:36:43 +00:00
Olivier Goffart
7c813a70fd
sysinfo example: Improve the disk use section
2021-10-07 11:27:10 +02:00
Olivier Goffart
d058e4c10e
Viewer: Make the "Close" button properly close
2021-10-07 11:26:09 +02:00
Olivier Goffart
19200fefac
sysinfo script: escape strings
2021-10-07 11:24:07 +02:00
Simon Hausmann
434f13a741
Use "close" instead of "ok" in the sysinfo dialog
...
Because that's what the button does, there's no need to "okay" :)
2021-10-07 11:09:55 +02:00
Simon Hausmann
35907dd098
Fix typo
2021-10-07 11:04:49 +02:00
Olivier Goffart
cc0d5e17a1
Fix materialized property being wrongly re-initilized when used within the same Element
...
Because the `bindings` field is taken in order not to keep the Element borrowed.
Fixes original report from #553
2021-10-07 09:23:24 +02:00
Simon Hausmann
8eda32cf3f
Fix build / formatting
2021-10-06 22:03:01 +02:00
Simon Hausmann
bf6aaf4657
Rename the embed_resources pass to embed_images
...
... because that's what it does, it only looks at image references.
2021-10-06 21:28:35 +02:00
Simon Hausmann
7aa6545046
Enable support for gzipped SVG
...
usvg detects gzipped SVG by looking at the first bytes, and Qt supports it as well.
2021-10-06 21:24:44 +02:00
Olivier Goffart
72d556113f
Visit globals when finding usages of structs
...
Otherwise some used struct might not be found, and they can cause
compilation failure in the generated C++ or Rust code
Fixes #549
2021-10-06 18:48:06 +02:00
Olivier Goffart
7939d834d4
Fix panic in the interpreter if there are properties that are aliased to struct
2021-10-06 18:33:27 +02:00
Simon Hausmann
7102f9b997
Fix standard button OK text
...
Ok -> OK
2021-10-06 16:16:39 +02:00
Simon Hausmann
0bfb0fce4e
Fix capitalization of simple input dialog
2021-10-06 16:15:32 +02:00
Olivier Goffart
aad9921ed2
Revert "Update link of the interpreter in the documentation"
...
This reverts commit 2fffeba7cb
.
2021-10-06 15:55:05 +02:00
Olivier Goffart
a1069e94f0
Fixup the publish script
...
the GL bakcend don't compile alone without specifying a feature
2021-10-06 15:55:05 +02:00
Simon Hausmann
301f142001
Add missing colon for simple input dialog eaxmple
2021-10-06 15:24:48 +02:00
Olivier Goffart
2fffeba7cb
Update link of the interpreter in the documentation
2021-10-06 14:55:32 +02:00
Olivier Goffart
4844450d01
Update the version in docs
2021-10-06 14:54:22 +02:00
Simon Hausmann
6dce5ab32e
Fix rendering of push buttons with QStyle on macOS
...
The button bevel was rendered upside down, which happens due to some
weird double y-axis inversion, which goes away when passing the QWidget
pointer to the style. When using the Qt backend, we can do that.
2021-10-06 14:39:56 +02:00
Olivier Goffart
db10bf2187
Fix embedded window icon with the Qt backend
...
Also add a window icon to the gallery
2021-10-06 12:39:22 +02:00
Olivier Goffart
106f1b756b
Fix sixtyfps-build always forcing a rebuild when a builtin image is include
...
We can't call return-if-changed with "builtin:" URL, otherwise cargo
thinks the build script always need to be re-run
Fix the gallery example always being rebuilt because it uses AboutSixtyFPS
2021-10-06 12:28:30 +02:00
Simon Hausmann
4c6c8233c0
Qt style: Improve default layout spacing on macOS
...
When the PM_LayoutHorizontalSpacing pixel metric is negative, we're supposed to call
layoutSpacing() on the style. Until we have a detailed
overview over the controls, a default spacing is better than -1 :-)
2021-10-06 11:10:58 +02:00
Olivier Goffart
a1b27c47ae
Small cleanup
...
The is_standard_button is alays true because the None path returns a few line before
2021-10-06 10:53:30 +02:00
Simon Hausmann
d43e0a1c83
Qt style: Only show icons in standard buttons if the style permits
2021-10-06 10:45:31 +02:00
Olivier Goffart
aa05e96d22
Native style: properly initialize the layout padding
2021-10-06 10:43:32 +02:00
Olivier Goffart
db4bc5338a
Make the upgrade_version.yaml also upgrade the version string in AboutSixtyFPS
2021-10-06 10:43:32 +02:00
Simon Hausmann
cabc06ad30
Provide a section for the 0.1.3 release in the changelog
...
This way we can link to it. More edits to be done on the changelog later.
2021-10-06 09:59:53 +02:00
Simon Hausmann
2ecf6c61d4
Minor cleanup: include the path in the error message when embedding an image fails
2021-10-06 09:44:06 +02:00
Olivier Goffart
d5ad9ebe0e
Improve the macro from the previous commit
...
I have the feeling that having less 'write!' will lead to better code
2021-10-06 09:02:43 +02:00
Olivier Goffart
521bf192f8
Improve error message for parse error
...
print the literal token symbol instead of the internal token name
2021-10-06 08:54:14 +02:00
Simon Hausmann
517b731e7b
Fix CI build
...
Turn message about inability to embed images into a warning for now
We do test our tutorial and in the CI build we enforce embedding,
so the icon paths there don't work.
2021-10-05 23:16:46 +02:00
Simon Hausmann
b3a5cfb74d
Fix typo in about widget text
2021-10-05 23:16:46 +02:00
Simon Hausmann
29f9dd5f5c
Minor cleanup in about widget
...
Remove the copyright statement, as it may give a misleading
impression about the copyright of the app.
2021-10-05 23:16:46 +02:00
Simon Hausmann
c23f98968e
Add missing newline for doctests
2021-10-05 23:16:46 +02:00
Simon Hausmann
88ad176008
Improve diagnostics when images cannot be located for embedding
...
This is a two-stage change, that first centralizes the file I/O code
path for on-disk and builtin:/ files. Secondly the resource embedding
pass now produces diagnostics if a file cannot be located.
2021-10-05 23:16:46 +02:00