|
| 1 | +== Skinning refactor == |
| 2 | + |
| 3 | +matrix-react-sdk |
| 4 | + - base images |
| 5 | + - base CSS |
| 6 | + - all the components needed to build a workable app (including the top layer) |
| 7 | + |
| 8 | +riot-web: the riot skin |
| 9 | + - riot-specific classes (e.g. login header/footer) |
| 10 | + - riot-specific themes |
| 11 | + - light |
| 12 | + - dark |
| 13 | + |
| 14 | +i.e. the only things which should go into riot-web are bits which apply vector-specific skinning |
| 15 | +specifically "Stuff that any other brand would not want to use. (e.g. riot logos, links, T&Cs)" |
| 16 | + - Questions: |
| 17 | + - Electron app? (should probably be a separate repo in its own right? but might as well go here for now) |
| 18 | + - index.html & index.js? (should be in matrix-react-sdk, given the SDK is useless without them?) |
| 19 | + |
| 20 | +ideally matrix-react-sdk itself should ship with a default skin which actually works built in. |
| 21 | + |
| 22 | +status skin (can go in the same app for now) |
| 23 | + - has status theme |
| 24 | + - which inherits from riot light theme |
| 25 | + - how do we share graphics between skins? |
| 26 | + - shove them into react-sdk, or... |
| 27 | + - guess we do ../../vector/img |
| 28 | + - this means keeping the skin name in the images (unless /img is a shortcut to the right skin's images) |
| 29 | + |
| 30 | +out of scope: |
| 31 | + - making the components more independent, so they can be used in isolation. |
| 32 | + - that said, the bits which should probably be used by being embeded into a different app: |
| 33 | + - login/reg |
| 34 | + - RoomView + RoomSettings |
| 35 | + - MessageComposer |
| 36 | + - RoomList |
| 37 | + - MemberList |
| 38 | + - MemberInfo |
| 39 | + - Voip UI |
| 40 | + - UserSettings |
| 41 | + - sharing different js-sdks between the different isolated modules |
| 42 | + |
| 43 | +other changes: |
| 44 | + - how do we handle i18n? |
| 45 | + - each skin should really be its own i18n project. As long as all the commonality stuff is in matrix-react-sdk this shouldn't be too bad. |
| 46 | + - ability to associate components with a given skin |
| 47 | + - skins/vector/src <-- components |
| 48 | + - skins/vector/css |
| 49 | + - skins/vector/img |
| 50 | + - skins/vector/fonts |
| 51 | + - gather together themes (per skin) into a single place too |
| 52 | + - skins/vector/themes/foo/css |
| 53 | + - skins/vector/themes/foo/img |
| 54 | + - skins/vector/themes/foo/fonts |
| 55 | + - ideally riot-web would contain almost nothing but skins/vector directory. |
| 56 | + - ability to entirely replace CSS rather than override it for a given theme |
| 57 | + - e.g. if we replace `Login.js` with `StatusLogin.js`, then we should similarly be able to replace `_Login.scss` with `_StatusLogin.scss`. |
| 58 | + |
| 59 | +random thoughts; |
| 60 | + - should we be able to change the entire skin at runtime (more like wordpress) - to the extent of replacing entire components? |
| 61 | + - might pose security issues if a theme can be swapped out to replace MatrixChat or other fundamental functionality at runtime |
| 62 | + - if so, perhaps skins & themes should converge... |
| 63 | + |
| 64 | +----------------- |
| 65 | + |
| 66 | +Immediate plan for Status: |
| 67 | + * Implement it as a theme for the riot skin |
| 68 | + * Ideally move skins to a sensible level (possibly even including src?) |
0 commit comments