tweak color picking algorithm for power levels, and introduce setting for per PL or per user colors
This commit is contained in:
parent
c0f4c053b0
commit
e5dd53ed6c
2 changed files with 47 additions and 6 deletions
2
lib/models/name_color.dart
Normal file
2
lib/models/name_color.dart
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
/// What users' name colors are hashed from.
|
||||
enum NameColor { powerLevel, user }
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
import "package:material_ui/material_ui.dart";
|
||||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
import "package:nexus/models/name_color.dart";
|
||||
import "package:nexus/models/room_order.dart";
|
||||
import "package:nexus/models/show_and_send.dart";
|
||||
|
||||
|
|
@ -17,6 +18,7 @@ class const Settings({
|
|||
final bool swipeToReply = false,
|
||||
final bool hideMembershipEvents = false,
|
||||
final RoomOrder roomOrder = .unreadFirst,
|
||||
final NameColor nameColor = .powerLevel,
|
||||
final ShowAndSend typingIndicators = .showAndSend,
|
||||
|
||||
/// When not sending, read receipts are still sent privately, so that the
|
||||
|
|
|
|||
Loading…
Reference in a new issue