Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/gioui/gio

Mirror of the Gio main repository (https://git.sr.ht/~eliasnaur/gio)
https://github.com/gioui/gio

cmd/gogio: simplify the test -race setup

In an earlier commit, we made it possible to run the e2e tests with the
race detector enabled ev...

4d7c89fec32afc7422872e735097c3270d854da4 authored about 5 years ago by Daniel Martí <[email protected]>
example,cmd: update gio version

Signed-off-by: Elias Naur <[email protected]>

c2cab4505c1c432acc76bb0517a7002ffbdaf567 authored about 5 years ago by Elias Naur <[email protected]>
app/internal/window: correct baseline DPI on Windows, iOS

Updates gio#53

Signed-off-by: Elias Naur <[email protected]>

4adaea3396e89d92706ae81c820f324c86db648f authored about 5 years ago by Elias Naur <[email protected]>
example,cmd: update gio version

Signed-off-by: Elias Naur <[email protected]>

615840352e05fb0fecbf8db37992062fc81f0ecf authored about 5 years ago by Elias Naur <[email protected]>
app/internal/window: make 1 dp = 1 px in WebAssembly

Updates gio#53

Signed-off-by: Elias Naur <[email protected]>

03eeba7974d1b40760c3d59c1a8fbeeb9b9da109 authored about 5 years ago by Elias Naur <[email protected]>
example,cmd: update gio version

Signed-off-by: Elias Naur <[email protected]>

513b19b2c5746192dcfd168239312e9954812cf7 authored about 5 years ago by Elias Naur <[email protected]>
app/internal/window: drop zero-sized redraws in WebAssembly

Signed-off-by: Elias Naur <[email protected]>

d478bb2bc5417d355cf16f661f8e3f6a8fd5d744 authored about 5 years ago by Elias Naur <[email protected]>
widget: add SetChecked method to CheckBox

Signed-off-by: Alexander Arin <[email protected]>

4ac3a7fd8428bbdb1d4e108b0e9ef6e142299bfe authored about 5 years ago by Alexander Arin <[email protected]>
example,cmd: update gio version

Signed-off-by: Elias Naur <[email protected]>

1110ed1aedb8feb22326384d319a5f9143516019 authored about 5 years ago by Elias Naur <[email protected]>
app/internal/window: implement dp/sp scaling in X11 driver

Use a constant 1.0 scaling from dp to pixels and adjust with user prefs.

Signed-off-by: Denis B...

c5449f0f74f53a53ffa5368f197a74c04c8c81c0 authored about 5 years ago by Denis Bernard <[email protected]>
example,cmd: update gio version

Signed-off-by: Elias Naur <[email protected]>

90de8b6360f9c474d25a353883f560755d14f111 authored about 5 years ago by Elias Naur <[email protected]>
app/internal/window: don't second guess UI scale

Before this change, Gio tries hard to come up with a reasonable UI scale
factor on desktop OSes ...

396a538afe04d5b50f5582c3e2096d13fd182595 authored about 5 years ago by Elias Naur <[email protected]>
example/kitchen: add CheckBox example

Signed-off-by: Elias Naur <[email protected]>

65146a5337398734507448bac4b26f47d1013506 authored about 5 years ago by Elias Naur <[email protected]>
widget,widget/material: add CheckBox

0f5b94a48370261469ffcdd3c1f0a98d09942355 authored about 5 years ago by Alexander Arin <[email protected]>
widget/material: move Icon to its own file and add Color; add CornerRadius to Button

2a06f3d3b26115786b3c6994dc92789911b7ae85 authored about 5 years ago by Alexander Arin <[email protected]>
cmd/gogio: fix a couple of staticcheck positives

Spotted the javac one by chance when reading the code, so I ran the tool
and fixed another small...

ec0c2498a1c4a9feee302032bcc499b68f75ab41 authored about 5 years ago by Daniel Martí <[email protected]>
.builds: run the cmd tests with and without -race

Signed-off-by: Elias Naur <[email protected]>

2bee95358a8bc55824960659c605fc9b8dca3eab authored about 5 years ago by Elias Naur <[email protected]>
cmd/gogio: support running e2e with and without -race

Right now, we can only run the e2e gio app with -race, not without
-race, because the flag is ha...

2a4829d857047d248ff09852ebd9d5d3040b8d4b authored about 5 years ago by Daniel Martí <[email protected]>
.build,cmd: add -race to test programs

It's not possible to set GOFLAGS=-race because some programs are
built for webassembly where -ra...

cc4b40764728f3fd8cc8354945b64dea32339e0e authored about 5 years ago by Elias Naur <[email protected]>
.builds: add sway as dependency for Wayland end-to-end test

Signed-off-by: Elias Naur <[email protected]>

b3635c78ee11c04492e6ba51a635fa64620b161d authored about 5 years ago by Elias Naur <[email protected]>
cmd/gogio: first wayland end-to-end tests

Clicking doesn't quite work yet, but everything else does. We use a
custom sway config to ensure...

12ce899bb5ee28aa111d0c8f08b0224271c3c5b8 authored about 5 years ago by Daniel Martí <[email protected]>
app/internal/window: apply font scale to dp scaling on Wayland

As discussed in gio#53, Linux font scales conflate two settings: the fractional
UI scale and the...

5eeaadccead599f61c41bf3491a26b56082f3411 authored about 5 years ago by Elias Naur <[email protected]>
app: fix reference to gioui.org/io/event

Signed-off-by: Elias Naur <[email protected]>

e2c29f96d98f49b372c255a53d2432270437bb41 authored about 5 years ago by Elias Naur <[email protected]>
README.md: add supported platforms

Signed-off-by: Elias Naur <[email protected]>

7182477f3ce6a13cb499cae46653b9d90fb1f2fd authored about 5 years ago by Elias Naur <[email protected]>
example,cmd: update gio version

Signed-off-by: Elias Naur <[email protected]>

dde09b9d742033ec1aa320ac3daf2fe5bc1e11ce authored about 5 years ago by Elias Naur <[email protected]>
cmd/gogio: remove sleeps in x11 e2e test

We can instead synchronize with the gio app via stdout. We need three
states, since we need to f...

97d13922ddfd483ff5786492135931123f9392d3 authored about 5 years ago by Daniel Martí <[email protected]>
Revert "gesture: add Active methods to gestures"

This reverts commit d829e56194a95427aedc4c6d2c89b0f3fe131aca.

We're not using the activity of g...

2a9361db65c08c7c1421d7c0dd56115350ec679e authored about 5 years ago by Elias Naur <[email protected]>
widget,widget/material: remove disabled drawing modes

Determining the enabled state of a widget from whether its Clicked method has
been called only w...

41074859027ff7e2db27e7ac8ed2e2c4d80e1683 authored about 5 years ago by Elias Naur <[email protected]>
.builds: add scrot to the linux image for the X11 end-to-end test

Signed-off-by: Elias Naur <[email protected]>

06aa0da2a2442210c82cd445396fb112791be2cc authored about 5 years ago by Elias Naur <[email protected]>
cmd/gogio: rip out cgo deps for x11

Instead rely on more tiny standalone tools. In this case, scrot lets us
take png screenshots, an...

b8e996074b489defd3b613961063a0a0bf979056 authored about 5 years ago by Daniel Martí <[email protected]>
.builds: install xdotool in the linux builder to satisfy the X11 test

Signed-off-by: Elias Naur <[email protected]>

837b5f6bab36a3b88f38671ccd24e67037ad507a authored about 5 years ago by Elias Naur <[email protected]>
cmd/gogio: add clicks to the e2e tests

The test app now responds to mouse clicks; clicking on one of the four
sections of the app flips...

41402ce52424962cb90005f66b59998e59fdfd9d authored about 5 years ago by Daniel Martí <[email protected]>
app/internal/window: tweak minimum pixels per dp/sp

To keep text legible on low DPI monitors, the number of pixels
per dp or sp is not is not allowe...

5b948ceece4d6335e45e7b84b8fab057368201b0 authored about 5 years ago by Elias Naur <[email protected]>
app/internal/window: apply monitorScale to sp values on Wayland

macOS and Windows already applies monitorScale to sp values. Wayland
didn't apply the monitorSca...

835714d44e0746b6297888462f21eb3f3d1f612a authored about 5 years ago by Elias Naur <[email protected]>
example: update gio version

Signed-off-by: Elias Naur <[email protected]>

c646827c0fc632814f64a1f0fefa46674cc9ba67 authored about 5 years ago by Elias Naur <[email protected]>
widget/material: adjust Button insets to match Android

Signed-off-by: Elias Naur <[email protected]>

9a6bdee813dac51ed8bbaf3434ca2f40957eb523 authored about 5 years ago by Elias Naur <[email protected]>
app: accept pending frame before reporting error

If creating a GPU instance fails for some reason, we need to
receive the incoming frame from the...

9126da41f453f9999d7f766b2f33189810fe319d authored about 5 years ago by Elias Naur <[email protected]>
app/internal/window: add note about ANGLE when failing to load it

Signed-off-by: Elias Naur <[email protected]>

15e34e9ca23e780cf74307af791d801fd53aeee8 authored about 5 years ago by Elias Naur <[email protected]>
cmd/gogio: add permissions system for Android

Search for imports of the form gioui.org/app/permission/* and add
required permissions to Androi...

af353822fa5e0f9e9f8416a662021e8c8f5ea001 authored about 5 years ago by Greg Pomerantz <[email protected]>
.builds: set GOFLAGS=-mod=readonly to catch stale go.mod files

Signed-off-by: Elias Naur <[email protected]>

f418684c0ece626e5fe563ec7ffbe3d2c1626755 authored about 5 years ago by Elias Naur <[email protected]>
cmd/gogio: Android: include jar files from dependencies

On Android, in addition to adding jar files found in the source
directory of the program being c...

3cd633ee44f2f79f73f8750ddbd1ebf32bb87b09 authored about 5 years ago by Greg Pomerantz <[email protected]>
cmd/gogio: start using layout.Flex in the e2e app

This vastly simplifies our code, and saves us the ugly math.

While at it, establish that a Test...

4e71f195ab51c4ddbe98f75cbce5842dfc3bc82e authored about 5 years ago by Daniel Martí <[email protected]>
cmd/gogio: add -tags nowayland to avoid Wayland in the X11 end-to-end test

Signed-off-by: Elias Naur <[email protected]>

3a341a3dafd789f2a9c59a5ef9853437431de199 authored about 5 years ago by Elias Naur <[email protected]>
cmd/gogio/testdate: gofmt -s -w

Signed-off-by: Elias Naur <[email protected]>

f9a3d3518420c9630a79255e2fc72e99229a2388 authored about 5 years ago by Elias Naur <[email protected]>
cmd/gogio: double sleep to ensure X11 output is available

Signed-off-by: Elias Naur <[email protected]>

34bbf59efaccd6b0136a831f9fb0e177569c9562 authored about 5 years ago by Elias Naur <[email protected]>
cmd/gogio: add four colors to the e2e tests

The e2e app now splits the window into four rectangles and paints them
differently.

The first a...

f20c0cc0a6da139b65d281b2468b04882b50a089 authored about 5 years ago by Daniel Martí <[email protected]>
cmd/gogio: start using a TestDriver e2e interface

Now we implement the "red background" end-to-end test exactly once.

While at it, start using a ...

b3d4da62296fa80564c76befc8cff32cad0755d2 authored about 5 years ago by Daniel Martí <[email protected]>
example,cmd: update gio version

Signed-off-by: Elias Naur <[email protected]>

ff8879ddce4289a19652447224c4357e24a67341 authored about 5 years ago by Elias Naur <[email protected]>
app/internal/window: introduce and use nilEGLDisplay

Updates gio#52

Signed-off-by: Elias Naur <[email protected]>

b53c2a7c9d569a60c58e3b1c3249fc2fcf17d485 authored about 5 years ago by Elias Naur <[email protected]>
cmd/gogio: send all e2e logs to t.Logf

chromedp was defaulting to log.Printf, which is not good for tests.

The xgb and xgbutil logs we...

d6f5902c5e625fc6018f804f397dd7396bd119e9 authored about 5 years ago by Daniel Martí <[email protected]>
cmd/gogio: use a more difficult color for end-to-end tests

RGB 0xff0000 is too easy to get right by accident.

Signed-off-by: Elias Naur <[email protected]>

dc7af8fba398233963b420c8fb98b9ec825a0a18 authored about 5 years ago by Elias Naur <[email protected]>
cmd/gogio: ignore alpha in end-to-end tests

On FreeBSD the X11 test seems to succeed except for the alpha
value:

--- FAIL: TestX11 (2.04s)...

d74be30a9051745d7754c5a78ae9f5135cad7a3c authored about 5 years ago by Elias Naur <[email protected]>
.builds: remove go fmt test from freebsd image

There is no reason to run platform independent tests on FreeBSD.

Signed-off-by: Elias Naur <mai...

6bbfe288aae548ad860e83fe7c7cf846e7409003 authored about 5 years ago by Elias Naur <[email protected]>
example,cmd: update gio version

Signed-off-by: Elias Naur <[email protected]>

3945302b4f8b3106d60c24a71f6f1f7ce2745354 authored about 5 years ago by Elias Naur <[email protected]>
app/internal: add FreeBSD support

Signed-off-by: Elias Naur <[email protected]>

3425b25ecc8c187d2b0830b9321db0ff3a73c644 authored about 5 years ago by Elias Naur <[email protected]>
app/internal/window: replace ppoll with poll

We're about to add FreeBSD where ppoll is not supported.

Signed-off-by: Elias Naur <mail@eliasn...

1cc1fb1c72307c224dbad4d54e91a2e98858a5d4 authored about 5 years ago by Elias Naur <[email protected]>
.builds: remove existing $PATH from PATH settings

$PATH is not expanded anyway, and it's better to be explicit.

Signed-off-by: Elias Naur <mail@e...

c131a7f423e4ae9f5404ff8c91c4e421fa939928 authored about 5 years ago by Elias Naur <[email protected]>
.builds: remove unused path from PATH

It was left over from when the builds didn't use the distro version
of Go.

Signed-off-by: Elias...

7939f142bdb02225612d10590f2eb2412b233737 authored about 5 years ago by Elias Naur <[email protected]>
cmd,example: update gio version

Signed-off-by: Elias Naur <[email protected]>

6d9dccdbaa6fb517addf5a8f1827a3333d1809f0 authored about 5 years ago by Elias Naur <[email protected]>
app: ensure the previous frame is complete before accepting another

It matters for end-to-end tests that rely on the window contents.

Before this change, tests had...

2e605f2dcb716192ce9effe9eb3c6889101b6857 authored about 5 years ago by Elias Naur <[email protected]>
cmd/gogio: fix a couple of x11 e2e TODOs

First, pick a random display number between 1 and 100,000. The pool is
large enough that we don'...

d31a129bf971a4e5101bc0dad70147b43e8a955d authored about 5 years ago by Daniel Martí <[email protected]>
.builds: add xvfb package to the linux builder for X11 end-to-end test

Signed-off-by: Elias Naur <[email protected]>

fe54f3df4e2d77cddfb2ccbce2898f5c25f51b27 authored about 5 years ago by Elias Naur <[email protected]>
cmd/gogio: add the first end-to-end X11 test

Right now it's very similar to the JS test on Chrome. Like it, this one
just runs the "red.go" g...

cea8dc374b928455279e2becb6341ba7bd6291f4 authored about 5 years ago by Daniel Martí <[email protected]>
.builds: switch from fedora/latest to debian/testing

Fedora builds kept failing at package installation. See
~sircmpwn/builds.sr.ht#220.

Signed-off-...

b8edf2ee04084a33bf93886d1c27375ebf3da3db authored about 5 years ago by Elias Naur <[email protected]>
cmd/gogio: clarify the need for --use-gl=egl in the e2e tests

After some investigation, it turns out that both Alpine and Arch suffer
from the same bug - thei...

95c47aba55d4646daca1757df7fdafc382335c0d authored about 5 years ago by Daniel Martí <[email protected]>
cmd,example: update gio version

Signed-off-by: Elias Naur <[email protected]>

4793faeaddbf0fca096c59cdb2eadf8976dd09c6 authored about 5 years ago by Elias Naur <[email protected]>
cmd/gogio: log chrome's console messages in TestJSOnChrome

For example, if the browser doesn't have webgl at all, the gio app will
fail to load. This will ...

4641607cd6a4635df4b1c7dc338c1b9c9767e28d authored about 5 years ago by Daniel Martí <[email protected]>
app/internal/window: X11 fix black window on Xephyr

On Xephyr, when fitst entering x11Window.loop(), syscall.Ppoll would
block forever while XPendin...

e834a78ab2f565afb2d1759a771386b9b3e887e0 authored about 5 years ago by Denis Bernard <[email protected]>
.builds: remove -v from a tar command

Signed-off-by: Elias Naur <[email protected]>

2eb233dda661cd2eaf420109f7d2adc06e45973b authored about 5 years ago by Elias Naur <[email protected]>
cmd,example: update gio version

Signed-off-by: Elias Naur <[email protected]>

b46206e60aecd689449e0da4bf025d168235738f authored about 5 years ago by Elias Naur <[email protected]>
app/internal/window: move -Werror from LDFLAGS to CFLAGS

Discovered by the builders, yay:

+ gogio -target android ./kitchen
gogio: go build -ldflags=-w ...

a7ae8b6e3d3c3850a01dd0676c878830ece67730 authored about 5 years ago by Elias Naur <[email protected]>
.builds: combine curl and tar to avoid temporary files

Signed-off-by: Elias Naur <[email protected]>

9671406cdd7ac34f3a50ab90d697117d4754a46e authored about 5 years ago by Elias Naur <[email protected]>
.builds: fix apple.yml again

Signed-off-by: Elias Naur <[email protected]>

48e0a5315df8923b2b9252253ce79ceb5c56c8cf authored about 5 years ago by Elias Naur <[email protected]>
app/internal/window: (Wayland) handle EAGAIN from wl_display_flush

Fixes gio#50

Signed-off-by: Elias Naur <[email protected]>

3f66d34599f6cc8dd5705de26c001e52524d7c9b authored about 5 years ago by Elias Naur <[email protected]>
.builds: fix apple.yml builder

Signed-off-by: Elias Naur <[email protected]>

f353c8c780a07ad14cef78363de9dc9aa0ba7744 authored about 5 years ago by Elias Naur <[email protected]>
.builds: add macOS+iOS builder

Signed-off-by: Elias Naur <[email protected]>

754db8c3d7fd96b99dc106fceca55389d740288f authored about 5 years ago by Elias Naur <[email protected]>
example/go.*: update gio version

Signed-off-by: Elias Naur <[email protected]>

4ba6b1a20cd439ed031c8021e4ac1052a510a0fc authored about 5 years ago by Elias Naur <[email protected]>
app/internal/window: don't use module imports in framework header

Using the module import syntax "@import UIKit" results in a complaint
from the compiler:

> warn...

7115b448e8cf62d5e49f291724836b15a13875d9 authored about 5 years ago by Elias Naur <[email protected]>
cmd/gogio: add -Werror to main.m build

Signed-off-by: Elias Naur <[email protected]>

a6e452d6d573553b6919501e38055bef8777ef83 authored about 5 years ago by Elias Naur <[email protected]>
app/internal: consolidate CFLAGS and move -Werror to #cgo directives

Signed-off-by: Elias Naur <[email protected]>

439d3e652c8f9bc19f39c498895e71f1bab9e520 authored about 5 years ago by Elias Naur <[email protected]>
example: update gio version

Signed-off-by: Elias Naur <[email protected]>

ddba67cc90320a64dc0ea5aef4e54e0283c0d50c authored about 5 years ago by Elias Naur <[email protected]>
cmd/gogio: build for iOS/macOS without -fmodules and -fobjc-arc

The `gogio` tool adds the `-fmodules -fobjc-arc` flags to the Cgo
C flags. Unfortunately, that m...

4a26bdad5d8c0c06a7ae1328adfe9d46f37339f3 authored about 5 years ago by Elias Naur <[email protected]>
cmd/gogio: improve the UX of the e2e tests

First, add a headless boolean flag that defaults to true. That way, one
can run 'go test -headle...

a0692d74af8d3e3e973d7ec992f1a28177eb6e5e authored about 5 years ago by Daniel Martí <[email protected]>
.builds: add automatic testing script

Add fedora.yml for testing on linux and windows.

Add android.yml for testing `gogio -target and...

8fab2f8cb1d3938ca4fad9b650805f90df4504dd authored about 5 years ago by Elias Naur <[email protected]>
README.md: add sr.ht related documentation from gioui.org

Use https for the Unlicense URL and add one for MIT as well.

Signed-off-by: Elias Naur <mail@el...

f4c6ec4fbe268bcf98de4f6296c2b045a188abab authored about 5 years ago by Elias Naur <[email protected]>
cmd/gogio/testdata: update gio version

Signed-off-by: Elias Naur <[email protected]>

3de204b8ef33a34c958a4f8d70d1ed1179bfe86c authored about 5 years ago by Elias Naur <[email protected]>
example: update gio version (X11 support!)

Signed-off-by: Elias Naur <[email protected]>

a8e5e7a788ed3f7197eca2752c6b686abb694b75 authored about 5 years ago by Elias Naur <[email protected]>
app/internal/window: x11 driver

This driver still lacks fling support and dp/sp configuration.

By default, linux builds will tr...

547ff2e484271a041c33350e521b525e5964fa27 authored about 5 years ago by Denis Bernard <[email protected]>
README.md: remove documentation and link to gioui.org

There is now a real website on gioui.org. Use that for documentation.

Signed-off-by: Elias Naur...

ec672ca06adb3b1adb77af958ae993dd26249321 authored about 5 years ago by Elias Naur <[email protected]>
app/internal/window: add needVSync() to eglDriver interface

This enables calling eglSwapInterval with an interval value of 0 or 1
on a per driver basis.

Si...

b78d1441197851d7a6552d71377445c40a7338ad authored about 5 years ago by Denis Bernard <[email protected]>
example/go.*: update gio version

Signed-off-by: Elias Naur <[email protected]>

2c75f52de6f8e76550045327a4edbf8d9b2bfd6e authored about 5 years ago by Elias Naur <[email protected]>
app/internal/window: work around missing MESA_EGL_NO_X11_HEADERS support

Some versions of eglplatform.h don't support the MESA_EGL_NO_X11_HEADER
define for cross-platfor...

fff9293c9b3cd5ab27eeb46f726bff60f04b6f76 authored about 5 years ago by Elias Naur <[email protected]>
website: delete

The website is now in a separate repository.

Signed-off-by: Elias Naur <[email protected]>

88adc0ee1a0b11cd64f6df9e6059e8d72440b233 authored about 5 years ago by Elias Naur <[email protected]>
layout: remove Format

Move Format to eliasnaur.com/giox/layout because it's not clear it
belongs in the Gio standard l...

c4ac40e609a5980dbff6337909ec60cbec3fccb3 authored about 5 years ago by Elias Naur <[email protected]>
example: update gio version

Signed-off-by: Elias Naur <[email protected]>

9a62468c25c4bdfa81d2a5b20f7b26c7ff380a5c authored about 5 years ago by Elias Naur <[email protected]>
font/gofont: add explicit Register

Registering the font as a side effect of importing the gofont package
was too magic. Require an ...

143d2aae95ddde018595c76f0f9f61fce1a42563 authored about 5 years ago by Elias Naur <[email protected]>
widget/material: respect height minimum constraint in Button.Layout

Signed-off-by: Elias Naur <[email protected]>

0504c27e46ed64cb0bebcda159ad20af4fd69954 authored about 5 years ago by Elias Naur <[email protected]>
example/kitchen: clean up

Signed-off-by: Elias Naur <[email protected]>

288460452184a807b0a2969bf3f75796aa23bcf5 authored about 5 years ago by Elias Naur <[email protected]>
example/go.*: update gio version

Signed-off-by: Elias Naur <[email protected]>

a35a2f5eb14d5be8bce957ad40149345c4da06f1 authored about 5 years ago by Elias Naur <[email protected]>
widget/material: respect min width in Button.Layout

Signed-off-by: Elias Naur <[email protected]>

3a60a384e65c214de96aa66f3e007f4515dec60c authored about 5 years ago by Elias Naur <[email protected]>