Commit graph

1354 commits

Author SHA1 Message Date
Daniel Garcia Moreno
ba12ca731c Merge branch 'space-above-emotes' into 'master'
Adds spacing above emotes #235

See merge request World/fractal!274
2018-11-20 13:13:39 +00:00
Tony Skuse
eafdaf7636
adds spacing above emotes #235 2018-11-19 09:33:52 -08:00
Piotr Drąg
3ff143451b Update Polish translation 2018-11-18 11:50:14 +00:00
Daniel Garcia Moreno
408f3da4ac Merge branch 'add_divider' into 'master'
Add day divider

See merge request World/fractal!272
2018-11-16 09:23:34 +00:00
Daniel Garcia Moreno
bf3b2ddb34 Merge branch 'reference' into 'master'
roomhistory: cleanup references to MessageBox

See merge request World/fractal!271
2018-11-16 08:51:35 +00:00
Julian Sparber
218bd7e0d6 roomhistory: fix day divider not showing for new messages 2018-11-15 18:10:14 +02:00
Julian Sparber
0b8ef5dadf messagebox: remove day from timestamp 2018-11-15 17:40:55 +02:00
Julian Sparber
b6cc2f6c1e roomhistory: localize day divider 2018-11-15 17:19:33 +02:00
Julian Sparber
bbaa3ce6fe roomhistory: remove lines from day divider 2018-11-15 16:57:09 +02:00
Julian Sparber
3ca758a100 roomhistory: add new day divider 2018-11-15 16:40:14 +02:00
Julian Sparber
dba32fee7c roomhistory: use enum as Common instead of struct 2018-11-15 15:35:11 +02:00
Julian Sparber
f1d33666f2 roomhistory: cleanup references to MessageBox
This removes clones and refactores how room_history keeps track of
messages.
2018-11-15 15:14:07 +02:00
Daniel Garcia Moreno
963c9b0e44 Merge branch 'messagebox' into 'master'
messagebox: remove MessageContent from MessageBox

See merge request World/fractal!270
2018-11-15 11:54:49 +00:00
Julian Sparber
02ec8440e4 add debug trait 2018-11-15 13:15:01 +02:00
Julian Sparber
28f7bffa15 messagebox: remove MessageContent from MessageBox
The MessageConetent is removed from the MessageBox, because it is not
really needed there and we should try to not make copies of a Message.
This also makes always use of &MessageConetent instead of some times
cloneing it.
2018-11-15 12:43:20 +02:00
Daniel Garcia Moreno
03fae4c636 Revert "Merge branch 'mobile-ui' into 'master'"
This reverts merge request !268
2018-11-14 18:05:36 +00:00
Daniel Garcia Moreno
6eff3180ea Revert "Merge branch 'fix-message-column-panic' into 'master'"
This reverts merge request !269
2018-11-14 18:04:33 +00:00
Daniel Garcia Moreno
4e264a3a2e Merge branch 'fix-message-column-panic' into 'master'
uibuilder.rs: Add scroll_widget to uibuilder

See merge request World/fractal!269
2018-11-14 10:26:21 +00:00
Christopher Davis
438e55cb03 uibuilder.rs: Add scroll_widget to uibuilder
A component previously used in main_window.ui  was moved into
scroll_widget.ui and called from App.ui.builder. However with
the move scroll_widget wasn't added to the rest of the files
in the GtkBuilder used for that call, causing a panic on
startup.

Now uibuilder adds the resource for scroll_widget.ui
2018-11-14 04:33:22 -05:00
Daniel Garcia Moreno
cc81e27c6c Merge branch 'mobile-ui' into 'master'
Basic Mobile UI

See merge request World/fractal!268
2018-11-14 08:56:32 +00:00
Daniel Garcia Moreno
78dc759399 Merge branch 'master' into 'mobile-ui'
# Conflicts:
#   fractal-gtk/src/app/connect/mod.rs
2018-11-14 08:34:25 +00:00
Daniel Garcia Moreno
0dfb8efa52 Merge branch 'scroll-refactor' into 'master'
roomhistory: create custom widget for scroll view

See merge request World/fractal!265
2018-11-14 08:30:11 +00:00
Christopher Davis
c576598a86 leaflet: Shrink padding to message list when app is folded
Applies a style class, folded-history, whenever the leaflet is
folded. folded-history shrinks the padding around the message
list to 6px from the default 18px.
2018-11-13 12:25:44 -05:00
Christopher Davis
179a7bd830 main_window.ui: Set transition animation for leaflets
Sets the slide animation for the HdyLeaflets for a nice
animation when switching between primary and secondary views.
2018-11-13 03:21:52 -05:00
Christopher Davis
216a79d082 fractal-gtk: Use HdyLeaflet for mobile UI
HdyLeaflet is a widget that can be used in split-header apps
like Fractal to split the panes into views, one primary and one
secondary.

This commit splits the main view of Fractal with HdyLeaflet so
at small sizes the room list is the primary view, and the room
history is the secondary view.
2018-11-13 03:10:24 -05:00
Daniel Garcia Moreno
e501ff0cdd Merge branch 'cleanup' into 'master'
roomhistory: remove shown message count

See merge request World/fractal!267
2018-11-11 19:05:35 +00:00
Daniel Garcia Moreno
9c26d1432c Merge branch 'ellpsize-display-names' into 'master'
widgets/message.rs: Ellipsize display names

See merge request World/fractal!266
2018-11-11 19:04:17 +00:00
Jordi Mas i Hernandez
bfa7c78f56 Update Catalan translation 2018-11-11 12:50:38 +00:00
Julian Sparber
6453152201 roomhistory: remove shown message count
We don't need to keep track any more how many messages are shown in the
room history, since we are displaying all locally stored messages
2018-11-10 18:11:47 +01:00
Julian Sparber
6bf4244bb1 update POTFILES.in 2018-11-10 17:30:40 +01:00
Julian Sparber
ffa63f8c53 roomhistory: create custom widget for scroll view
This moves the ScrolledWindow to a custom widget, to clean up code
inside AppOP and decrease its size.
2018-11-10 17:23:24 +01:00
Christopher Davis
eda25fcd38 widgets/message.rs: Ellipsize display names
Long display names could resize the window and prevent
the user from shrinking it. Now display names are ellipsized
at the end if there is not enough space to display them.

Related to https://gitlab.gnome.org/World/fractal/issues/351
2018-11-09 16:30:00 -05:00
Daniel Garcia Moreno
0bcf2a9efc Merge branch 'scrollbutton' into 'master'
roomhistory: fix scroll down button

See merge request World/fractal!264
2018-11-09 10:17:27 +00:00
Julian Sparber
967cb458d3 roomhistory: fix scroll down button
Since the last changes we have to updated the destination value for the
scrolled animation, else it wouldn't scroll to the end when pressed
while new messages are added.
2018-11-09 10:11:10 +01:00
Daniel Garcia Moreno
fe61b43d40 Merge branch 'fixscroll' into 'master'
roomhistory: keep scroll position when adding messeges

See merge request World/fractal!263
2018-11-09 07:48:21 +00:00
Julian Sparber
51a75d5a96 roomhistory: keep scroll position when adding messeges
This adjusts the scroll position when more messages are loaded. Also
messages are fetched once the user reaches the edge -2*pageSize.
2018-11-08 21:23:18 +01:00
Daniel Garcia Moreno
1f1de7ab82 Merge branch 'log-crate' into 'master'
Log crate

This MR aims to solve (at least part of) issue #354 


See merge request World/fractal!259
2018-11-07 07:45:11 +00:00
mairandomness
dbab137679 Log crate 2018-11-07 07:45:11 +00:00
Daniel Garcia Moreno
ebf4af104c Merge branch 'upsidedown' into 'master'
roomhistory: draw messages from the buttom up

See merge request World/fractal!261
2018-11-07 07:41:01 +00:00
Jordan Petridis
5b716e66cc Merge branch 'speedup' into 'master'
roomhistory: make rendering a message much faster

See merge request World/fractal!260
2018-11-06 11:23:12 +00:00
Jordan Petridis
b5cf7d5656 Merge branch 'center_header' into 'master'
center room name on room history, fix  #329

Closes #329

See merge request World/fractal!258
2018-11-06 11:17:30 +00:00
Julian Sparber
dcfa039b42 roomhistory: draw messages from the buttom up
This attaches the room history to the input field and makes loading of
messages a little bit smoother.
2018-11-06 11:50:42 +01:00
Julian Sparber
139811b5ca roomhistory: make rendering a message much faster
Rendering of a room message was really slow (> 10ms), mostly
because we create some RegExp inside loops, which is really slow.

This replaces the RegExp with contains()/start_with(), which makes
rendering much faster (<< 1ms), it also cleans up some code.
2018-11-06 11:05:54 +01:00
Julian Sparber
81c149b5c2 center room name on room history 2018-11-01 23:02:51 +01:00
Daniel Garcia Moreno
371965b797 Merge branch 'revert-69140334' into 'master'
Revert "Merge branch 'fix/error-format' into 'master'"

See merge request World/fractal!257
2018-10-31 19:33:26 +00:00
Daniel Garcia Moreno
eb9c49b957 Revert "Merge branch 'fix/error-format' into 'master'"
This reverts merge request !256
2018-10-31 19:30:13 +00:00
Daniel Garcia Moreno
6914033446 Merge branch 'fix/error-format' into 'master'
Remap rustc output to show errors in GNOME Builder sidebar

See merge request World/fractal!256
2018-10-31 10:34:23 +00:00
Daniel Garcia Moreno
4f7e9b3b63 Merge branch 'show-device-id' into 'master'
Save device_id and show in Account Settings

See merge request World/fractal!255
2018-10-31 10:33:15 +00:00
Ricardo Silva Veloso
03772da2f9 Remap rustc output to show errors in GNOME Builder sidebar 2018-10-31 00:44:07 -03:00
Christopher Davis
e8985ef648 Save device_id and show in Account Settings
In Account Settings within "Advanced Information" there was a
label for device_id, but the value always showed as "None".
Now device_id is saved during login and registration, and
show in the Account Settings properly.
2018-10-30 18:41:05 -04:00