Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP]: settings rework #4955

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ac4b82e
feat: settings account view rework
Xazin Mar 19, 2024
4fd0b31
chore: remove unused files
Xazin Mar 19, 2024
90058b7
chore: remove unused elements
Xazin Mar 19, 2024
9d8d2a2
feat: complete account view
Xazin Mar 19, 2024
24f5f99
feat: workspace settings
Xazin Mar 21, 2024
c254442
chore: merge branch 'upstream/main' into feat/settings-rework
Xazin Mar 21, 2024
48ca562
fix: dialog min max width
Xazin Mar 22, 2024
60eb317
chore: merge branch 'upstream/main' into feat/settings-rework
Xazin Mar 22, 2024
a16a083
chore: merge branch 'upstream/main' into feat/settings-rework
Xazin Mar 23, 2024
e9fb161
chore: localizations for workspace
Xazin Mar 24, 2024
d66f5dd
chore: merge branch 'upstream/main' into feat/settings-rework
Xazin Mar 24, 2024
814d3f8
feat: update workspace icon
Xazin Mar 29, 2024
7133df6
chore: merge branch 'upstream/main' into feat/settings-rework
Xazin Mar 29, 2024
1a2b32d
fix: fixes after merging main
Xazin Mar 29, 2024
6ee8b0d
chore: merge branch 'upstream/main' into feat/settings-rework
Xazin Mar 30, 2024
77ae94c
chore: merge branch 'upstream/main' into feat/settings-rework
Xazin Apr 1, 2024
3d94494
chore: merge branch 'upstream/main' into feat/settings-rework
Xazin Apr 2, 2024
90ca1a4
fix: instant feedback on collapse menu buttons
Xazin Apr 2, 2024
4dad87c
feat: theme dropdown + theme mode selection
Xazin Apr 2, 2024
23cd55b
chore: merge branch 'upstream/main' into feat/settings-rework
Xazin Apr 2, 2024
10619e1
feat: more of workspace
Xazin Apr 9, 2024
2502f78
chore: merge branch 'upstream/main' into feat/settings-rework
Xazin Apr 9, 2024
704977f
chore: duplicate keys after merge
Xazin Apr 9, 2024
017967e
feat: finish workspace page
Xazin Apr 10, 2024
245176c
chore: merge branch 'upstream/main' into feat/settings-rework
Xazin Apr 10, 2024
9b5c0fa
feat: leave/delete workspace initial
Xazin Apr 10, 2024
173f4bb
feat: clean up and refactor members view
Xazin Apr 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 4 additions & 5 deletions frontend/appflowy_flutter/lib/core/frameless_window.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import 'package:flutter/services.dart';
import 'package:flutter/material.dart';
import 'dart:io' show Platform;

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

class CocoaWindowChannel {
CocoaWindowChannel._();

Expand Down Expand Up @@ -46,9 +47,7 @@ class MoveWindowDetectorState extends State<MoveWindowDetector> {
return GestureDetector(
// https://stackoverflow.com/questions/52965799/flutter-gesturedetector-not-working-with-containers-in-stack
behavior: HitTestBehavior.translucent,
onDoubleTap: () async {
await CocoaWindowChannel.instance.zoom();
},
onDoubleTap: () async => CocoaWindowChannel.instance.zoom(),
onPanStart: (DragStartDetails details) {
winX = details.globalPosition.dx;
winY = details.globalPosition.dy;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import 'dart:async';
import 'dart:typed_data';

import 'package:appflowy_backend/protobuf/flowy-error/errors.pb.dart';
import 'package:appflowy_backend/protobuf/flowy-notification/protobuf.dart';
import 'package:appflowy_backend/protobuf/flowy-user/protobuf.dart';
import 'package:appflowy_backend/rust_stream.dart';
import 'package:appflowy_result/appflowy_result.dart';

import 'notification_helper.dart';
Expand All @@ -29,26 +26,3 @@ class UserNotificationParser
errorParser: (bytes) => FlowyError.fromBuffer(bytes),
);
}

typedef UserNotificationHandler = Function(
UserNotification ty,
FlowyResult<Uint8List, FlowyError> result,
);

class UserNotificationListener {
UserNotificationListener({
required String objectId,
required UserNotificationHandler handler,
}) : _parser = UserNotificationParser(id: objectId, callback: handler) {
_subscription =
RustStreamReceiver.listen((observable) => _parser?.parse(observable));
}

UserNotificationParser? _parser;
StreamSubscription<SubscribeObject>? _subscription;

Future<void> stop() async {
_parser = null;
await _subscription?.cancel();
}
}
Loading
Loading