Add type_username option (closes #891) (#1012)

## What are the changes about?

Add an option to allow user manually input username, instead of selecting from a list of discovered users.

I have not tested the changes yet since I wasnt able to get it build locally. Will try to resolve this asap.

## What existing issue does this resolve?

#891

## Pre-requisites

- [ ] I have tested & confirmed the changes work locally
- [x] I have run `zig fmt` throughout my changes

Co-authored-by: HigherOrderLogic <73709188+HigherOrderLogic@users.noreply.github.com>
Co-authored-by: AnErrupTion <anerruption@disroot.org>
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/1012
Reviewed-by: AnErrupTion <anerruption+codeberg@disroot.org>
This commit is contained in:
HigherOrderLogic
2026-07-05 22:43:15 +02:00
committed by AnErrupTion
parent 006749b2ec
commit 25fad28c34
5 changed files with 119 additions and 41 deletions

View File

@@ -144,6 +144,10 @@ pub fn handle(self: *Text, maybe_key: ?keyboard.Key) !void {
);
}
pub fn writeText(self: *Text, str: []const u8) !void {
for (str) |c| try self.write(c);
}
fn draw(self: *Text) void {
if (self.masked) {
if (self.maybe_mask) |mask| {