Commit Graph

12756 Commits

Author SHA1 Message Date
Mirko Galimberti fc0e4b72c9 Bump versions on tools/build_linux_dependencies.sh 2023-03-18 23:54:49 +05:30
Mirko Galimberti 6161417835
Update Copyright and LICENSE dates (#8175) 2023-03-18 11:51:47 +01:00
Dexer 58c1328c85
`Ellipse`: Handle the number of segments and avoid division by zero (#8164)
* handle the number of segments, avoid division by zero

* add warning, update segment calculation

* Update kivy/graphics/vertex_instructions.pyx

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>

* update docs

---------

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>
2023-03-18 08:43:11 +01:00
Dexer 008c6aed49
`Line`/`SmoothLine`: Fixes rendering issues related to corner radius and updates its order (`rounded_rectangle`) + add getter methods for `rounded_rectangle`, `rectangle`, `ellipse`, `circle`. (#7876)
* Fix for radius values large or equal to 0 in the rounded_rectangle

- Internal segment control to avoid unwanted shapes.
- Update resolution default value to 90.
- Corner_radius order changed to match RoundedRectangle radius property (clock-wise).
- Avoid issues with smoothline if width or height < 2.0

* Update doc, add unittests and minor tweaks

* decrease the number of segments

* Update doc, refactoring, allow larger radius value

* Allows to get the generated shape

- rounded_rectangle
- rectangle
- ellipse
- circle

* update unittests

* fixes issue related to number of segments

* removing code no longer needed since my last commit

* limit minimum resolution, refactoring

Minimum resolution keeps the figure renderable and avoids division by zero

* removing unnecessary note, typo

* Apply suggestions from code review

Co-authored-by: Gabriel Pettier <gabriel.pettier@gmail.com>

* Update vertex_instructions_line.pxi

* update docs

---------

Co-authored-by: Gabriel Pettier <gabriel.pettier@gmail.com>
2023-03-12 16:40:10 +01:00
djogy 4388451af5
Added property for mouse draggable tab scrollbar to TabbedPanel (#8144)
* Added property for mouse draggable tab scrollbar

* Fix: W291 trailing whitespace

* add versionadded 2.2.0 tag
2023-03-11 10:02:54 +01:00
Mirko Galimberti 31b6c81c5c
Fix memory access issue on iOS 16.2 for AVMetadata objects (#8146) 2023-03-11 09:20:26 +01:00
quanon 82b30f2664 Use font_direction and font_script_name from sdl2_ttfi. 2023-03-10 21:11:24 +05:30
Akshay Arora 4f5db71049
Merge pull request #8156 from misl6/fix/update-required-tools 2023-03-10 17:20:25 +05:30
Akshay Arora f0921c2b88
Merge pull request #8147 from jotoft/linux_highdpi_sdl2 2023-03-10 17:18:21 +05:30
Akshay Arora 6a29251604
Add libxext-dev as a requirement for ubuntu build. 2023-03-09 14:38:06 +05:30
Akshay Arora 0b933b1a16
Merge pull request #8155 from misl6/fix/linux-dependencies-build-fail-early-and-docs
Dependencies build tool: exit immediately on fail and allows to debug easier
2023-03-09 14:31:54 +05:30
Johan Toft 8e75624167 Use SDL_GetDisplayDPI as fallback method to get DPI
Use [SDL_GetDisplayDPI](https://wiki.libsdl.org/SDL2/SDL_GetDisplayDPI) to get the display DPI if no high DPI was detected using the method described in the warning for
the SDL_GetDisplayDPI function (which is the current method for guessing the DPI).

If the X server is configured with the DPI of the display then this GetDisplayDPI method
returns the correct DPI on Linux.
2023-03-06 21:21:02 +01:00
Johan Toft b5147bf408 Scale metrics density for linux
If higher than normal DPI is configured using `KIVY_DPI` or other means then the density of the screen is higher and this should be reflected in the density.

This will make the density calculation on linux the same as Windows and macOS.

Unit test change:

Use almost equal in density property unit tests
Since the density is a floating point number, the tests can fail
if the calculated value is slightly rounded.
2023-03-06 21:21:02 +01:00
Johan Toft 621af23920
Correct the flake8 pre-commit URL (#8157) 2023-03-06 21:12:00 +01:00
Mirko Galimberti ff7960be84 Docs: Update the Ubuntu prereq to build Kivy and its dependencies 2023-03-06 20:33:14 +01:00
Mirko Galimberti 2d850d0126 Dependencies build tool: exit immediately on fail and allow an easier debug 2023-03-06 20:30:36 +01:00
Mirko Galimberti 61a52b183d
Use SDL_WINDOWEVENT_DISPLAY_CHANGED to notice about window moving to another display (which may have a different dpi value) (#7982) 2023-02-25 09:11:18 +01:00
Dexer f222bfb8a6
`BoxShadow`: Accept values for vertical and horizontal `spread_radius` (#8138)
* Accept values for vertical and horizontal `spread_radius`

* fix image

* update docs
2023-02-22 21:04:11 +01:00
Dexer 7733a20b30
Adds always on top feature (#8076) 2023-02-21 08:24:23 +01:00
Dexer bc766c64b5
Improve docs about `BoxShadow` behavior and usage. (#8139)
* update BoxShadow docs

* update images
2023-02-19 05:51:18 +01:00
Akshay Arora 2f1d20dd50
Merge pull request #8096 from misl6/feat/build-dependencies
Introduce build script for SDL dependencies and `KIVY_DEPS_ROOT`
2023-02-18 23:54:46 +05:30
Dexer 0bd9901d6a
`BoxShadow`: Add `inset` feature (#8132)
* add inset feature

* update docs

* Refactor shadow calculation
2023-02-18 15:50:33 +01:00
Christian Clauss 5c5cb51351
Remove remaining nosetest settings in favor of pytest (#8129) 2023-02-14 20:59:11 +01:00
Mirko Galimberti 9c712588d7
Switch back to macos-latest instead of macos-11 (#8126) 2023-02-12 13:56:29 +01:00
CdrSonan c9b5fb4945
Fix for changes of Splitter.strip_cls having no effect (#8109)
* fix for Splitter.strip_cls not working in kvlang

* adjusted uix.Splitter._strip reinstancing trigger

* removed compat.string_types import in uix.Splitter
2023-02-12 10:40:08 +01:00
Christian Clauss 022aaf32a3
GitHub Actions: Use current Python instead of hardcoded v3.9 (#8121)
* [build wheel] GitHub Actions: Use current Python instead of hardcoded v3.9

* Python 3.11 on apple-silicon-m1
2023-02-12 09:20:39 +01:00
Mirko Galimberti 36f31666c4 Build with libmodplug support 2023-02-08 18:58:31 +01:00
Mirko Galimberti 5240b464bd Add libtiff support on linux 2023-02-05 15:32:45 +01:00
Evgeniy Selezniov 179f4aad49
Simplify Animation._unregister (#8035)
Use a more idiomatic way to remove an element from a set if the element is in the set.
2023-02-05 11:03:47 +01:00
Mirko Galimberti 2276bbad3e webp support on linux 2023-02-05 10:30:18 +01:00
Christian Clauss 62a076570a
Upgrade more GitHub Actions versions (#8120) 2023-02-04 15:56:39 +01:00
Mirko Galimberti cad29c6331 Update docs 2023-02-04 12:07:36 +01:00
Christian Clauss dfa79431e4
Upgrade GitHub Actions versions (#8117)
* GitHub Actions: Fix unix unit test

SETUPTOOLS_ENABLE_FEATURES: "legacy-editable"

* Revert SETUPTOOLS_ENABLE_FEATURES: 'legacy-editable'

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>

---------

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>
2023-02-04 10:50:44 +01:00
Akshay Arora 5cf46a0c4c
Merge pull request #7632 from Alspb/get_cursor_from_xy_fix
Fixed enormously large cursor_x returned by get_cursor_from_xy when touch is righter then the last symbol of the line.
2023-01-30 15:06:50 +05:30
Dexer 816a96ba68
Fix `BoxShadow` shader crashing issue on Adreno GPUs (#8098)
* update fix for Adreno GPU

* add reference

* remove workarounds

* fix typo

* Update boxshadow.pyx
2023-01-14 17:38:09 +01:00
Akshay Arora 17274a5c57
Merge pull request #8083 from misl6/feat/runtime-fullscreen-ios
Allow changing `Window.fullscreen` and `Window.borderless` options after setup on iOS
2023-01-09 13:56:28 +05:30
Mirko Galimberti df51c84bdf Add libxrender-dev for rpi build 2023-01-08 14:39:22 +01:00
Mirko Galimberti f84f8c9478 Update docs 2023-01-07 17:26:49 +01:00
Mirko Galimberti 15de4364ee Introduces build scripts for sdl2 dependencies and KIVY_DEPS_ROOT 2023-01-07 15:41:17 +01:00
Mirko Galimberti b30f7987d1
Install twine only when needed (#8099) 2023-01-07 13:53:57 +01:00
Mirko Galimberti e932a4e987
Add gstreamer1.0-plugins-good for autoaudiosink availability during tests (#8093) 2023-01-02 12:29:17 +01:00
Mirko Galimberti 5744bc564d
Add a warning about keyboard_suggestions usage on Android (#8089) 2023-01-01 15:41:44 +01:00
Mirko Galimberti 88905bbc17
Add support sphinx 6.0.0 (#8088) 2023-01-01 10:30:12 +01:00
Mirko Galimberti b4b4dfccab
Switch from `ubuntu-18.04` to `ubuntu-latest` as `18.04` runners will be removed on 2023-01-12 (#8084)
* Switch from ubuntu-18.04 to ubuntu-latest as 18.04 runners will be removed on 2023-01-12

* Fix a dependency bug
2022-12-30 15:41:07 +01:00
Mirko Galimberti 3c1736167e Add some documentation regarding fullscreen + borderless functionality on iOS 2022-12-26 12:18:42 +01:00
Mirko Galimberti a68074bcce Disable unbind_create_window hack on iOS 2022-12-26 11:57:03 +01:00
Mirko Galimberti 1b953338c5 Make fullscreen configurable at runtime on iOS 2022-12-26 10:58:33 +01:00
Dexer a7c6688027
Add `BoxShadow` graphic instruction (#8056)
* add BoxShadow instruction

* update docs, fix shader for some devices

* assign texture only on initialization

* check initial attributes

* change to tuple

* refactoring

* update docs

* add unit tests
2022-12-18 10:09:16 +01:00
Mirko Galimberti a94505ef85
Use find_spec, module_from_spec and exec_module instead of find_module and load_module since are deprecated. (#8062)
Co-authored-by: Mirko Galimberti <me@mirkogalimberti>
2022-11-28 19:57:32 +01:00
Mirko Galimberti 3f6d36e913
Add support for Python 3.11 (#8044)
* Test on Python 3.11 (except Apple Silicon)

* Add comment about gstreamer 0.4.0

* Bump cython to 0.29.32 for 3.11 support.

* Bump cibuildwheel to 2.11.2 and add config for 3.11

Co-authored-by: Matt Einhorn <matt@einhorn.dev>
2022-11-06 14:51:20 +01:00