Commit graph

29 commits

Author SHA1 Message Date
Josh Wood
6a131e2648
Added PropertyAnimation.direction property for controlling animation direction (#6261)
Closes #6260

ChangeLog: Added property for controlling animation direction
2024-09-24 19:55:24 +02:00
Tobias Hunger
199a7286a8 tree-sitter: Relicense grammar.js to MIT
Code is generated from grammar.js, which gets built into a library. That
library gets loaded by a text editor. So someone might argue that the GPL might
infect that text editor.

We do not want that argument to come up, so let's use MIT for that code.
2024-06-03 11:11:35 +02:00
Aurindam Jana
3523e86359
Simplify commercial license (#3063)
Base the commercial license on the Royalty-free license adding clauses pertaining to the fees.
2024-05-31 14:06:17 +02:00
Aurindam Jana
9a3aa265d5
Update Royalty-free license (#5257)
Add clarification that Application may not expose Slint APIs.
2024-05-31 10:53:19 +02:00
Olivier Goffart
659dcfb92e Fixed tree_sitter for changed callbacks 2024-05-02 22:25:53 +02:00
Simon Hausmann
8a7bb0a7d2 Fix tree-sitter grammar to support optional trailing semicolon after else block
Commit 183278c0e8 exposed the following
statement to the parser with a trailing semicolon:

            if (val > 50) {
                return green;
            } else if val > 40 {
                return yellow;
            } else {
                return blue;
            };
2024-04-16 15:54:13 +02:00
Aurindam Jana
0cfeec1a31
Update Slint Community License (#4994)
Updated the version from 1.1 to 1.2 
Renamed the header to "Slint Royalty-free Desktop, Mobile, and Web Applications License"
Added definition of "Mobile Application" and grant of right
Moved "Limitations" to 3rd section and "License Conditions - Attributions" to 2nd section
Added flexibility to choose between showing "MadeWithSlint" as a dialog/splash screen or on a public webpage
Moved the para on copyright notices to section under "Limitations"
2024-04-15 15:18:55 +02:00
Olivier Goffart
255dc59ef4 Rename @image-url(..., 9slice(...)) to @image-url(..., nine-slice(...))
As per API review:
 - In the Rust and C++ API we use `set_nine_slice_edges` because the getter couldn't start with 9
 - in english we spell number less than 10 with letters and this is a name
2024-03-07 17:01:57 +01:00
Tobias Hunger
be8fdd15d5 tree-sitter: Fix some MISSING nodes
The latest tree-sitter made it glaringly obvious
that some of our tests ended up containing
`MISSING` nodes, inserted where tree-sitter
expected a token that it did not see in the input.

Fix those bugs in the parser.
2024-02-22 13:17:41 +01:00
Tobias Hunger
bdf162b124 janitor: Reformat grammar.js (no change!) 2024-02-22 13:17:41 +01:00
Olivier Goffart
d99c320ea4 Update tree sitter gramar for the 9slice 2024-02-13 14:46:27 +01:00
Tobias Hunger
84ce4ee440 tree-sitter: Incorporate feedback from nvim review 2024-02-07 15:12:14 +01:00
Tobias Hunger
caf11f5334 tree-sitter: Polish the parser
* Remove stray `else` branch in `if` statement
* Rename `visibility` to `function_visibility`
* Rename `visibility_modifier` to `property_visibility`
2024-02-06 15:46:23 +01:00
Tobias Hunger
d6eff87cdb tree-sitter: Clean up grammar and improve queries
Clean up the `grammar.js` file and improve the queries.

Document how to inject `slint` into the rust parser to get highlighting
for the `slint!` macro in rust files.
2024-01-28 22:55:22 +01:00
Tobias Hunger
63b12874ae tree-sitter: Update for latest tree-sitter release
Tree-sitter got a bit less lenient, so gradients and @image-url needed
special rules to be added.
2024-01-26 18:14:33 +01:00
Tobias Hunger
0139eea4f9 xtask: Fix up license headers
* Keep project related .md files triple licensed as the rest of the
  crate
* Make vtable MIT OR Apache 2.0 (as suggested by @ogoffart)
2023-08-17 08:55:28 +02:00
Simon Hausmann
96d7bb132c reuse: remove glob for markdown files
Instead, place the copyright and license right into the source.

To satisfy reuse, this also removes the unnecessary MIT.txt
symlinks.
2023-08-17 08:55:28 +02:00
Aurindam Jana
5a4a7fee63
Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
Olivier Goffart
fc1570b19d Fix tree sitter
The tree-sitter test start failling with the introduction of the test
from the previous commit which has an expression for the model
2023-06-27 10:06:20 +02:00
Olivier Goffart
11dea135f7 Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00
Tobias Hunger
04d1229685 Fix licnese information using xtask 2023-06-16 09:14:20 +02:00
Aurindam Jana
039e54a5de
Add royalty free license to files except examples and docs (#2888) 2023-06-15 11:20:50 +02:00
Olivier Goffart
80a4e2e201 Update tree-sitter grammar for enums 2023-06-12 13:02:14 +02:00
Olivier Goffart
12e6b34e2d Translations: support for plurals 2023-06-07 10:34:34 +02:00
Olivier Goffart
f2281dd900 Adjust tree sitter to parse the context in @tr 2023-06-06 14:48:48 +02:00
Tobias Hunger
a454ffe8f9 tree-sitter: Polish queries 2023-02-13 09:22:42 +01:00
Tobias Hunger
671d22d762
tools: Tree sitter update for 1.0 (#2144)
Make our tree-sitter parser handle all the 1.0 syntax.
2023-02-10 14:46:47 +01:00
Simon Hausmann
d8a1f2cf01 Introduce a rem unit in the type system
This allows specifying font sizes relative to the Window's
default-font-size, similar to CSS rem.
2022-11-24 11:33:38 +01:00
Olivier Goffart
3949045e1b Rename the editor folder to editors 2022-06-27 17:44:46 +02:00