UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Messaging app colors

    Scheduled Pinned Locked Moved Solved Support
    22 Posts 5 Posters 4.0k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • KenedaK Offline
        Keneda
        last edited by Keneda

        Hi.

        I'd like to change some colors on the messaging app, like the color of my messages bubbles (the green ones), where can i find them?
        Maybe @jezek or @lduboeuf can tell me?

        PS : it's not in .config\com.ubuntu.messaging-app\MessagingApp.conf

        2015-2023 : Meizu MX4 ☠️⚰️✝️
        2023-2024 : Nexus 5 ☠️⚰️✝️
        2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
        🇲🇫🇬🇧

        lduboeufL 1 Reply Last reply Reply Quote 0
        • lduboeufL Offline
          lduboeuf @Keneda
          last edited by

          @keneda You can find the colors used here: https://github.com/ubports/messaging-app/blob/xenial/src/qml/MessageBubble.qml#L90

          These are colors from the themes.

          KenedaK 1 Reply Last reply Reply Quote 0
          • KenedaK Offline
            Keneda @lduboeuf
            last edited by Keneda

            @lduboeuf
            I see that " lduboeuf make links more visible" on top of the page, that's good, and indeed, now links can be red in green bubbles ^^

            Anyway, i still want to change those green bubbles, where can i find this file with file manager in my device?

            I tried the command line find / -iname "*MessageBubble*" from terminal but the only file corresponding was from datamonitor app (maybe i did something wrong because most of folders were "access denied").

            2015-2023 : Meizu MX4 ☠️⚰️✝️
            2023-2024 : Nexus 5 ☠️⚰️✝️
            2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
            🇲🇫🇬🇧

            jezekJ 1 Reply Last reply Reply Quote 1
            • jezekJ Offline
              jezek @Keneda
              last edited by jezek

              @keneda

              $ find / -iname "*MessageBubble*" 2>/dev/null
              /opt/click.ubuntu.com/datamonitor.matteobellei/0.2.3/qml/MessageBubble.qml
              /usr/share/messaging-app/MessageBubble.qml
              

              The second one is what you're looking for.

              jEzEk

              KenedaK 1 Reply Last reply Reply Quote 1
              • KenedaK Offline
                Keneda @jezek
                last edited by

                @jezek Yes, thanks!

                Wonder why i didn't find it, and why all those "access denied" folders ^^

                2015-2023 : Meizu MX4 ☠️⚰️✝️
                2023-2024 : Nexus 5 ☠️⚰️✝️
                2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                🇲🇫🇬🇧

                jezekJ 1 Reply Last reply Reply Quote 0
                • jezekJ Offline
                  jezek @Keneda
                  last edited by

                  @keneda said in Messaging app colors:

                  why all those "access denied" folders

                  I've got a lot of "access denied" too, but the 2>/dev/null appendix sends all errors to endless void...

                  jEzEk

                  1 Reply Last reply Reply Quote 0
                  • KenedaK Offline
                    Keneda
                    last edited by Keneda

                    So now i tried to edit this file with seabass 2 and it tells me that i can't overwrite it, even if i made system r/w (with terminal or UTTT).

                    Any idea? :grinning_face_with_sweat:

                    @jezek said in Messaging app colors:

                    I've got a lot of "access denied" too, but the 2>/dev/null appendix sends all errors to endless void...

                    You made me think about Enter The Void 😁

                    2015-2023 : Meizu MX4 ☠️⚰️✝️
                    2023-2024 : Nexus 5 ☠️⚰️✝️
                    2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                    🇲🇫🇬🇧

                    1 Reply Last reply Reply Quote 1
                    • KenedaK Offline
                      Keneda
                      last edited by

                      Well after thinking, i guess i have to CHMOD 777 or alike the file?
                      I'll try tomorrow.

                      2015-2023 : Meizu MX4 ☠️⚰️✝️
                      2023-2024 : Nexus 5 ☠️⚰️✝️
                      2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                      🇲🇫🇬🇧

                      1 Reply Last reply Reply Quote 0
                      • K Offline
                        kugiigi
                        last edited by

                        Yeah, it seems that Seabass can't modify files outside the home directory even if it's unconfined. Probably an apparmor limitation. I would suggest backing up the original file then copy it to your home directory and modify that file. And then copy that back to the original path. That's how I usually do it. Or if you want, install an app like Geany in your root and use x-forwarding 😄

                        KenedaK 1 Reply Last reply Reply Quote 0
                        • KenedaK Offline
                          Keneda @kugiigi
                          last edited by Keneda

                          @kugiigi
                          I tested this (files system still r/w), and if i can copy file outside directory (to document folder), and then edit it, i can't copy back to the original path, same error, no right to do this.

                          2015-2023 : Meizu MX4 ☠️⚰️✝️
                          2023-2024 : Nexus 5 ☠️⚰️✝️
                          2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                          🇲🇫🇬🇧

                          1 Reply Last reply Reply Quote 0
                          • KenedaK Offline
                            Keneda
                            last edited by Keneda

                            Ok i managed to copy file to it's original directory, i had to "sudo su" in terminal, and then use "cp" command, all this with r/w files system on.

                            So i tried to test edit line 100 from return theme.name === "Ubuntu.Components.Themes.SuruDark" ? "lightGreen" : "green" to return theme.name === "Ubuntu.Components.Themes.SuruDark" ? "lightGreen" : "orange" but no success (even with device powered off then on), bubble still are green :grinning_face_with_sweat:

                            Obviously i reverted back the file.

                            2015-2023 : Meizu MX4 ☠️⚰️✝️
                            2023-2024 : Nexus 5 ☠️⚰️✝️
                            2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                            🇲🇫🇬🇧

                            K 1 Reply Last reply Reply Quote 0
                            • K Offline
                              kugiigi @Keneda
                              last edited by

                              @keneda Worked fine with me when I modified it directly. You just need to restart the messaging app to make it take effect. Perhaps you were not able to copy the file successfully.

                              KenedaK 1 Reply Last reply Reply Quote 0
                              • KenedaK Offline
                                Keneda @kugiigi
                                last edited by Keneda

                                @kugiigi Yes i restarted app as i restarted device itself, and i checked that the file was successfully copied (the modded one) before restarting, by opening it with seabass after doing the CP command, from the messaging-app folder.

                                What color did you mod, and what color did you use to mod it?

                                2015-2023 : Meizu MX4 ☠️⚰️✝️
                                2023-2024 : Nexus 5 ☠️⚰️✝️
                                2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                                🇲🇫🇬🇧

                                K 1 Reply Last reply Reply Quote 0
                                • K Offline
                                  kugiigi @Keneda
                                  last edited by

                                  @keneda I changed it to blue and orange. Maybe you are on dark mode so lightGreen is still being used?

                                  KenedaK 1 Reply Last reply Reply Quote 0
                                  • KenedaK Offline
                                    Keneda @kugiigi
                                    last edited by Keneda

                                    @kugiigi
                                    Ohhh my god, i though i was modding for dark theme...
                                    I tested with clear theme just now and yes, it works!

                                    So, what do i need to mod for dark theme, the "lightcolors" ones?

                                    By the way, messaging app often crashs when i change theming, i noticed this before trying this thread mod.
                                    I have to try lot of time before being able to change theme in the app, then, when succesfull one time, i can change it without crash, untill i close app then it start again to crash.

                                    2015-2023 : Meizu MX4 ☠️⚰️✝️
                                    2023-2024 : Nexus 5 ☠️⚰️✝️
                                    2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                                    🇲🇫🇬🇧

                                    KenedaK 1 Reply Last reply Reply Quote 0
                                    • KenedaK Offline
                                      Keneda @Keneda
                                      last edited by Keneda

                                      @keneda said in Messaging app colors:

                                      So, what do i need to mod for dark theme, the "lightcolors" ones?

                                      Answer to myslef, yes it is :grinning_face_with_big_eyes:

                                      @kugiigi now i have one question, were i can find all colors supported? And, is RGB/HEX color supported? (for example can a take one color or its RGB or hex value from this site, first from qwant results : https://rgbcolorcode.com/ )

                                      2015-2023 : Meizu MX4 ☠️⚰️✝️
                                      2023-2024 : Nexus 5 ☠️⚰️✝️
                                      2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                                      🇲🇫🇬🇧

                                      K 1 Reply Last reply Reply Quote 0
                                      • K Offline
                                        kugiigi @Keneda
                                        last edited by

                                        @keneda That is a known issue which is weird since other apps changes the theme without issues.

                                        You can put colors in different formats. Just for color support in QML.
                                        You can also pick a color from UITK.
                                        https://phone.docs.ubuntu.com/en/apps/qml/tutorials-ubuntu-ui-toolkit-palette

                                        KenedaK 1 Reply Last reply Reply Quote 0
                                        • KenedaK Offline
                                          Keneda @kugiigi
                                          last edited by Keneda

                                          @kugiigi
                                          OK i was going to open an issue when i find messaging app GIT, but i assume it already exist now ^^

                                          Great thanks to you, @lduboeuf and @jezek for your help 🙂

                                          EDIT : link from start of text on the page you gave me ("palette" https://ubuntu.com/developer/api/apps/qml/sdk-15.04.1/Ubuntu.Components.Themes.Palette ) is broken link by the way ^^

                                          2015-2023 : Meizu MX4 ☠️⚰️✝️
                                          2023-2024 : Nexus 5 ☠️⚰️✝️
                                          2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                                          🇲🇫🇬🇧

                                          AppLeeA 1 Reply Last reply Reply Quote 1
                                          • AppLeeA Offline
                                            AppLee @Keneda
                                            last edited by

                                            @keneda
                                            This is from Canonical. I don't think they'll make an update here before shutting it down completely...
                                            But the first page should give you all that you need.

                                            KenedaK 1 Reply Last reply Reply Quote 0
                                            • KenedaK Offline
                                              Keneda @AppLee
                                              last edited by Keneda

                                              @applee said in Messaging app colors:

                                              This is from Canonical

                                              Ah ok...

                                              @applee said in Messaging app colors:

                                              But the first page should give you all that you need.

                                              Yes i got it, ^^
                                              And i can confirm that any color under #XXXXXX format works.

                                              2015-2023 : Meizu MX4 ☠️⚰️✝️
                                              2023-2024 : Nexus 5 ☠️⚰️✝️
                                              2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                                              🇲🇫🇬🇧

                                              AppLeeA 1 Reply Last reply Reply Quote 0
                                              • First post
                                                Last post