Commit Graph

25 Commits

Author SHA1 Message Date
Igor Solomennikov
0686b39547 Add necessary imports to Swift files.
Those would be required for future PRs.
2023-06-13 14:46:12 -07:00
Igor Solomennikov
1f450f3b51
Convert AttachmentSharing to Swift. 2023-06-07 11:41:23 -07:00
Igor Solomennikov
c792bd0e50
Improvements to video controls in media viewer.
• animated play/pause button transition.
• allow tap&hold on rewind and FF buttons to scrub at 2x speed.
2023-06-05 17:39:12 -07:00
Igor Solomennikov
c054f3de91
Remove unnecessary "@objc" in SignalUI. 2023-05-16 16:39:19 -07:00
Igor Solomennikov
838b6a6e6d
Fix usage of USE_DEBUG_UI define.
Guard compilation of all DebugUI* classes with USE_DEBUG_UI instead of DEBUG and stop defining USE_DEBUG_UI whenever DEBUG is defined. Instead I defined USE_DEBUG_UI separately for Debug builds
in the project settings.

Benefits:
• can easily enable Debug UI for non-debug builds.
• allow use USE_DEBUG_UI in Swift files.
2023-05-08 14:36:35 -07:00
Igor Solomennikov
f7c5537348
Media viewer updates related to video playback and landscape mode.
• move video playback progress bar to the bottom panel.
• vertically compact layout of video playback controls in landscape.
• hide album preview strip when in landscape.
• move Forward and Share buttons to the navigation bar when in landscape.
2023-04-14 12:21:14 -07:00
Evan Hahn
58e276d0f0
Remove UIUtil.h 2023-04-12 14:59:59 -05:00
Evan Hahn
788424eef4 Swiftify setupSignalAppearance and move it to Theme
This was a pretty mechanical change.
2023-04-12 11:44:17 -07:00
Igor Solomennikov
e4b2ad1757
Add Rewind and Fast Forward buttons to video player for videos over 30 sec long. 2023-03-21 11:29:22 -07:00
Igor Solomennikov
71cbc9d80d
Rename OWSVideoPlayer to VideoPlayer and stop exposing class to ObjC. 2023-03-15 11:52:19 -07:00
Igor Solomennikov
3abcb3294b Fix typo: "appearence" -> "appearance". 2022-11-29 22:01:42 -08:00
Evan Hahn
5eebe44c77 Remove unused UI utility functions
This removes `UIUtil.applyRoundedBorderToImageView` and
`UIUtil.removeRoundedBorderToImageView`, which are unused.
2022-11-03 07:07:50 -05:00
Evan Hahn
370ff654e7
Change license to AGPL
Change license to AGPL

This commit:

- Updates the `LICENSE` file

- Start every file with something like:

      // Copyright YEAR_FIRST_PUBLISHED Signal Messenger, LLC
      // SPDX-License-Identifier: AGPL-3.0-only

---

First, I removed existing license headers with this Ruby 3.1.2 script:

    require 'set'

    EXTENSIONS_TO_CHECK = Set['.h', '.hpp', '.cpp', '.m', '.mm', '.pch', '.swift']

    same = 0
    different = 0

    all_files = `git ls-files`.lines.map { |line| line.strip }
    all_files.each do |relative_path|
      if relative_path == 'Pods'
        next
      end

      unless EXTENSIONS_TO_CHECK.include? File.extname(relative_path)
        next
      end

      path = File.expand_path(relative_path)

      contents = File.read(path)
      new_contents = contents.sub(/\/\/\n\/\/  Copyright .*\n\/\/\n\n/, '')

      if contents == new_contents
        same += 1
      else
        different += 1
      end

      File.write(path, new_contents)
    end

    puts "updated #{different} file(s), left #{same} untouched"

I'm sure this script could be improved, but it worked well enough.

Then, I created `Scripts/lint/lint-license-headers` and ran it to auto-
fix a lot of files. This changed the mode of some files, but I think
that's actually desirable. For example,
`SignalServiceKit/src/Util/AppContext.m` previously had a mode of
`0755/-rwxr-xr-x`, and it's now `0644/-rw-r--r--`.

Then I fixed some stragglers and updated the precommit script.

See [a similar change in the Desktop app][0].

[0]: 8bfaf598af
2022-10-13 08:25:37 -05:00
Harry
9fe09ce980
Add context menu to story viewer
* Consolidate context menu actions into one class used by Stories list and my stories

* add context menu to story viewer

* change hidden stories header into a regular cell

* generate context menu at tap time to properly reload hidden state

* some cleanup

* pr feedback

* Add DelegatingContextMenuButton to maintain desired hooks without deviating ContextMenuButton's API from that of UIButton
2022-09-07 18:13:00 -07:00
harry-signal
2a23f61a3f
Video Story muting/unmuting
* Start muted, unmute when pressing volume buttons

* move ringer switch observation into its own class

* observe ringer switch in stories

* add foreground time to AppContext; use to drive mute foregrounding behavior

* dont double observe

* mix story volume with others, show volume controls
2022-08-10 16:25:49 -07:00
Dimitris Apostolou
62724cf0be Fix typos 2022-03-18 11:31:06 -07:00
Matthew Chen
91ad7d1df7 Respond to CR. 2021-10-21 09:21:31 -03:00
Matthew Chen
7d0485661d Move window manager to Signal target. 2021-10-19 17:59:13 -03:00
Matthew Chen
57f8212495 Add SignalUI framework target. 2021-10-19 09:39:53 -03:00
Matthew Chen
25f015d8bc Add SignalUI framework target. 2021-10-19 09:39:53 -03:00
Matthew Chen
93ba483ec5 Add SignalUI framework target. 2021-10-19 09:39:53 -03:00
Matthew Chen
b27457ecc6 Add SignalUI framework target. 2021-10-19 09:39:53 -03:00
Matthew Chen
a50b328efd Add SignalUI framework target. 2021-10-19 09:39:53 -03:00
Matthew Chen
c416609108 Add SignalUI framework target. 2021-10-19 09:39:53 -03:00
Matthew Chen
b9b66646ff Add SignalUI framework target. 2021-10-19 09:39:52 -03:00