~sewn

only for contributing

Recent activity

[PATCH] doc/notifications: mention official f-droid lacking firebase 3 months ago

From sewn to ~emersion/goguma-dev

---
 doc/notifications.md | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/doc/notifications.md b/doc/notifications.md
index 5c2f920..37ebbe8 100644
--- a/doc/notifications.md
+++ b/doc/notifications.md
@@ -17,6 +17,10 @@ When running on a device with Google Services available, Goguma may use the
Google infrastructure to deliver notifications. Notification payloads are
end-to-end encrypted.

However, it's important to note that the official F-Droid distribution of
Goguma does not include Firebase, so notifications will resort to the
[message trimmed]

somebar is obsolete 4 months ago

From sewn to ~raphi/public-inbox

Hi, i would like to bring to the table going forward a patch for dwl
itself called the bar patch, which is now upstreamed in dwl-patches
and aims to perfectly replicate the original dwm bar in suckless fasion
using fcft instead of pango and cairo.

I've noticed somebar uses C++, which is not suckless, and is opting to
replace software such as slstatus with harmful alternatives such as a
somebar equivalent called someblocks.

Which is why i would reccomend the usage of the bar patch, since somebar
does not offer features that make it acceptable to be a valid 
replacement,
and nor is it suckless - it is in [harmful] C++.

[PATCH] Demonstrate that I can use git send-email 4 months ago

From sewn to ~sircmpwn/email-test-drive

---
 sewn | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 sewn

diff --git a/sewn b/sewn
new file mode 100644
index 0000000..6d0ecfd
--- /dev/null
+++ b/sewn
@@ -0,0 +1 @@
I'm about to try git send-email
-- 
2.43.2
[message trimmed]

Re: Text height or width method 5 months ago

From sewn to ~eliasnaur/gio

How are you supposed to retrieve the scaling factor?

Re: Text height or width method 7 months ago

From sewn to ~eliasnaur/gio

Just a small question though, does the Context used to get the maximum height can be used
again within the event loop? or is it only used once just to retrieve the height?

I assume the answer is no, as the context also needs the event members and such.

Re: Text height or width method 7 months ago

From sewn to ~eliasnaur/gio

On Thu Dec 21, 2023 at 8:18 PM +03, Chris Waldon wrote:
> var ops op.Ops
> th := material.NewTheme()
> gtx := layout.Context{ // fill in values to provide maximum allowed sizes }
> dims := material.Body1(th, "foo").Layout(gtx)
> ops.Reset()
>
> // now you have dims, the dimensions of the text.

Thanks alot! i was actually doing this exact same thing, i just hadn't filled the
Constraints member of context, which is why i was confused when the dimensions were 0..

Text height or width method 7 months ago

From sewn to ~eliasnaur/gio

Hi, i am currently making a 'dialog' system for use in my program,
and i've been finding it difficult to figure out a correct size,
as most messages can be longer than the already hard-coded window size.

Is it possible to automatically get maximum width or height for a given
text and a label method (eg. material.Body1) so i can use the maximum
to set the window size accordingly?

In other words, how can i dynamically make a window in which the 
dimensions
are appropiately sized to the height/lines of a message?

thanks

Re: Flexed without forcing space 7 months ago

From sewn to ~eliasnaur/gio

This works for me:

     layout.Flexed(1, func(gtx C) D {
         return layout.Dimensions{
             Size: image.Point{X: gtx.Constraints.Max.X, Y: 
gtx.Constraints.Max.Y},
         }
     })

Flexed without forcing space 7 months ago

From sewn to ~eliasnaur/gio

Hi, is it possible in Gio to make a Flex that takes up all of the available
space, but without forcing descendant flex children to take up all the space?
My usecase is to make buttons at the complete end of the window.

Thanks.

[PATCH v1] Move horizontal buffer list to top instead of bottom when width is 0 7 months ago

From sewn to ~delthas/senpai-dev

---
 app.go   |  4 ++--
 ui/ui.go | 14 ++++++++------
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/app.go b/app.go
index 3fe3112..4254cad 100644
--- a/app.go
+++ b/app.go
@@ -507,7 +507,7 @@ func (app *App) handleMouseEvent(ev *tcell.EventMouse) {
	if ev.Buttons()&tcell.ButtonPrimary != 0 {
		if x < app.win.ChannelWidth() {
			app.win.ClickBuffer(y + app.win.ChannelOffset())
		} else if app.win.ChannelWidth() == 0 && y == h-1 {
[message trimmed]