notsecure / uTox

Lightweight Tox client
utox.org
GNU General Public License v3.0
597 stars 149 forks source link

UI refactor, rebuild the user settings page #1058

Closed GrayHatter closed 9 years ago

GrayHatter commented 9 years ago

todo

GrayHatter commented 9 years ago

closes #904

GrayHatter commented 9 years ago

todo fix #542 as well

stal888 commented 9 years ago

Doesn't break anything here. :+1:

e: patch to add the git tag to cocoa makefile

diff --git a/cocoa/Makefile b/cocoa/Makefile
index c0b6431..0d70bf6 100644
--- a/cocoa/Makefile
+++ b/cocoa/Makefile
@@ -27,6 +27,8 @@ PREFIX ?= /usr/local

 SRC = $(wildcard *.c cocoa/*.m)
 OBJ = $(SRC:=.o)
+GIT_V = $(shell git describe --abbrev=8 --dirty --always --tags)
+CFLAGS += -DGIT_VERSION=\"$(GIT_V)\"

 all: utox
GrayHatter commented 9 years ago

@irungentoo

towlie commented 9 years ago

@GrayHatter unbenannt Also I recommend to fix these overflow issue in a better way in general (maybe using per language spaces? or automatically detect needed space?) Because this is a big issue that uTox has accross languages when new things are added.

GrayHatter commented 9 years ago

The problem with using per language sizing is that first, there's no great way to decide how long a string is going to be. And when trying to size these tabs, getting overflow will become a huge problem. Even with the english text, if you narrow the window enough you lose tabs...

I don't know what a good solution for this is while still making it look good

tsudoko commented 9 years ago

@GrayHatter couldn't drawtextwidth()/drawtextrange() be used for tab text as a workaround?

irungentoo commented 9 years ago

Can you make your menu buttons change colour on mouse hover and make it switch when you click on the button (right now it only switches if you click on the text).

Clicking your name and status doesn't switch you to where you can change it.

In the Audio/Video the filter audio setting can be moved closer to the Ringtone setting.

Scrolling up and down in a setting makes the line on top disappear.

GrayHatter commented 9 years ago
GrayHatter commented 9 years ago

this next commit is optional, it shrinks the wasted space in the header for settings...

towlie commented 9 years ago

@GrayHatter "language" is in the profile tab it belongs to "user interface". Also the close to tray button should be moved a lot more to the right because some translations are really long. I think you should check all translations to prevent further issues. over

tsudoko commented 9 years ago

Does the "uTox Settings" label actually need to be there? Seems like it'd look fine without it.

GrayHatter commented 9 years ago

@GrayHatter "language" is in the profile tab it belongs to "user interface".

I thought about that, but I left it in profile because I wanted it to be front and center so to speak in case you don't speak/read english.

GrayHatter commented 9 years ago

Does the "uTox Settings" label actually need to be there? Seems like it'd look fine without it.

It's there for legacy reasons, but I don't know what to put there? Expanding the tabs to 30px seems like overkill.

tsudoko commented 9 years ago

Does it look bad with tabs at their current height, but without the settings label?

tsudoko commented 9 years ago

Also I'm not sure if the last tab should be so long, it looks a bit weird with a wide window and the last tab selected.

GrayHatter commented 9 years ago

Also I'm not sure if the last tab should be so long, it looks a bit weird with a wide window and the last tab selected.

I could make them floating widths, but they'd look equally as bad center justified for huge window widths.

stal888 commented 9 years ago

You don't have to make the tabs 30px tall, just move everything up