Skip to main content

Questions tagged [user-interface]

The part of the application that users directly interact with. Use this tag for reviews of code that defines how an application's user interface works and looks.

6 votes
3 answers
561 views

Menu user interface class in C++

I wrote a menu user interface in C++. What do you think about my code? What can I improve? Am I missing some better practices? main.cpp ...
whiteman808's user avatar
5 votes
2 answers
179 views

Tags selector in plain JavaScript, without using any plugin

I have made a "tags selector" in plain JavaScript, without using any plugin. ...
Razvan Zamfir's user avatar
5 votes
1 answer
133 views

Font Selector Combobox Design in C#

A font selector combobox which contains all the values from the InstalledFontCollection enumeration is created, and the font of each item is same as its name. The ...
JimmyHu's user avatar
  • 7,535
9 votes
2 answers
740 views

Color Selector Combobox Design in C#

I am trying to create a color selector combobox which contains all the values from the KnownColor enumeration, and the background color of each item is same as its ...
JimmyHu's user avatar
  • 7,535
2 votes
1 answer
136 views

How to manage array of states effectively?

I have a working code to have 2 search bars with dropdown suggestions, selectable by both mouse and arrow keys in TypeScript and Fresh/Preact. In there I have to explicitly declare individual hooks ...
Ooker's user avatar
  • 201
0 votes
1 answer
71 views

What command line options style is the best for command similar to `scp`? [closed]

I am writing a command line tool to copy files to or from locations, which can be a path inside a task inside a running Nomad task. The location can be either a stream or location on the local ...
KamilCuk's user avatar
  • 101
3 votes
2 answers
334 views

Truncating/abbreviating strings in the middle with an ellipsis (…) (or other) separators with a fixed character limit

Problem For some user-facing string, I want to truncate it to some given maximum length (also useful for file name/path lengths on Windows etc.). However, I want to do it a little more elaborately ...
rklec's user avatar
  • 163
1 vote
2 answers
216 views

Virtual scroller Vue component

Problem The scrolling looks smooth on Windows, but very laggy on Linux (Webkit webview and Webkit browsers). Any thoughts on what could be optimized or what's obviously broken? Demo playground: https:/...
AlekseyHoffman's user avatar
2 votes
1 answer
88 views

Clock time validation app, cognitive exercise, minimal viable product

How to improve this code, how to make it accessible to get user feedback? This is a minimal clock time validation app. There is a clock face and the user is asked to validate the time the clock hands ...
Attila Vajda's user avatar
5 votes
0 answers
549 views

Implementing a Basic Camera UI using WebGPU and JavaScript

Context I am currently in the process of throwing myself into learning graphics programming, and my chosen platform is using JavaScript and WebGPU. After successfully making a basic glTF JSON renderer ...
user2628206's user avatar
0 votes
0 answers
70 views

Enable a textbox when the previous one is no longer empty

I've written this JavaScript code, which disables textboxes if the previous textbox is empty. This is so people enter the text in order — write first in the first textbox, only then the second textbox ...
MrKnowsNothing's user avatar
1 vote
2 answers
113 views

UI of a text-based game with simple print statements

I am writing a simple text adventure in python that will eventually have the capability of running other text adventures within it, but my code is all over the place and the UI is terrible. What are ...
PeakMars's user avatar
3 votes
1 answer
268 views

Responsive Navigation with hamburger menu

This script creates a hamburger menu when the window is resized. It will also create a sticky navigation when the window is scrolled down, which will also create a hamburger menu when the window is ...
DumbMathBoy's user avatar
4 votes
2 answers
203 views

Python Tkinter UI Pattern Password Code

This post is less of a question and more of a hope for people to see my code which I know is far from great and give me some direction or simple tips on improving the quality of it. Normal Stud: ...
Jack's user avatar
  • 41
3 votes
1 answer
181 views

Newspaper Bill Calculator CLI with Python (2 of 3, CLI)

Code is posted after explanation. Due to the size of the project, this is being posted in three separate posts. This also ensures each post is more focused. Post 1 of 3, Core: Newspaper Bill ...
eccentricOrange's user avatar

15 30 50 per page
1
2 3 4 5
10