Comments (7)
Interesting idea! I might look into implementing this sometime.
from swiftcord.
Update: this is quite difficult to do well without MacOS 13+. I was unable to find a good enough solution. Here's what I tried:
-
Using a HStack to arrange the server bar next to the main content. This is what we are doing with the regular server bar right now. The problem with this is that the server bar with names would be neither resizable nor collapsible.
-
Using a HSplit to arrange them. This doesn't work well because it adds resize handles to the regular server bar, which isn't good. It also doesn't solve the issue of collapsibility.
-
Creating a 3-column NavigationView does exactly what I want, except that it's got a minimum column width. This makes the regular server bar too wide. I was unable to change this minimum column width.
If anyone has any better solutions, feel free to have a go at it. If not, I think we should wait until MacOS 13 where NavigationSplitView is implemented, which solves this problem.
from swiftcord.
@now-its-dark thanks for the suggestion. As @Sjmarf has mentioned, it appears to be difficult to harmoniously implement always-displayed server-names, so I'd love to hear about potential UI designs/mockups from you :D If they are feasible, we might consider implementing them in the future.
from swiftcord.
Hi @cryptoAlgorithm, it seemed like the main issue was more a limitation of the current Swift UI until the next update. If there is an interest though, I do have some concrete thoughts on how to accommodate an expanded server list view and the dm list view, without creating clutter. I'll try and mock something up tonight :-)
from swiftcord.
@now-its-dark sure, I look forward to your mockups. I think it should be possible to accommodate an expandable server list with the current version of SwiftUI, I think the issue is that we just don't know how to make it look good and "discord-like"
from swiftcord.
Hi there!
I had meant to follow up on this sooner, but got rather sick shortly after.
The concept I had in mind looks something like this: Chat and Server List are two distinct components of the Discord experience and imo, they should be treated as such in the UI. A tabbed navigation between the two seems like the most straightforward approach.
The attached mock is using the stock Discord UI- I had hoped to adjust it to match the Swiftcord UI when sharing this, but the issue mentioned on bug #167 has been happening for me, so I'm unable to get past login, in order to screen-cap it and use that as a reference.
My thinking was that the two views would be decoupled in such a way, that the last server or DM to be viewed would be the one presented when clicking the respective tab, so you could easily jump between the last viewed for either one.
from swiftcord.
@now-its-dark thank you for getting back! Apologies for the issue you're experiencing, a temporary fix has been posted in Swiftcord's Discord server and will be incorporated in the next release.
As for the mock-ups, I kind of dig the Servers/Friends tabbed design. Widening the sidebar seems worth it to combine DMs and servers this way. However, since I'd like to keep the overall sidebar width (server + channel list) roughly the same, do you have any ideas how to incorporate the channel list into your existing mockups in a way that doesn't significantly increase the total sidebar width?
from swiftcord.
Related Issues (20)
- [Bug]: Drag and Drop doesn't work HOT 1
- [Enhancement]: Clean cache feature in Settings HOT 4
- [Bug]: Channel list scrollbar too large HOT 1
- [Bug]: in app update doesn't find latest release HOT 3
- [Bug]: Uploads above 8MB not accepted HOT 1
- [Bug] Folder popover opening cancels server mask animation HOT 4
- [Bug]: Settings icons and search bar are cut-off HOT 5
- [Bug]: the <New> red line in DM's pops up when I message. HOT 2
- [Enhancement]: Render Mentions HOT 2
- [Bug]: Stuck logging in HOT 22
- [Enhancement]: missing shift+enter functionality HOT 1
- [Bug]: Stuck after login - Nitro Basic HOT 3
- [Enhancement]: iOS port HOT 2
- [Bug]: Having UI layout overlaps HOT 1
- [Bug]: Won't load HOT 13
- [Bug]: Window caption bar layout broken HOT 5
- [Bug]: Loads infinitely after logging in HOT 27
- [Enhancement]: Make the "(edited)" text not be possible to copy
- [Enhancement]: Discord server icon in the background of the "close" button or something
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftcord.