24 changed files with 184 additions and 68 deletions
-
1CHANGELOG.md
-
13app/MujiCallParticipant.php
-
6app/User.php
-
2app/Widgets/Chat/_chat.tpl
-
2app/Widgets/Chat/_chat_clear.tpl
-
1app/Widgets/Colors/Colors.php
-
1app/Widgets/Colors/colors.tpl
-
10app/Widgets/Config/Config.php
-
6app/Widgets/Config/_config_accent_color.tpl
-
14app/Widgets/Config/_config_form.tpl
-
13app/Widgets/Config/config.css
-
9app/Widgets/Config/config.js
-
3app/Widgets/Config/locales.ini
-
11app/Widgets/Drawer/drawer.css
-
64app/Widgets/Rooms/Rooms.php
-
12app/Widgets/Visio/visio.css
-
16app/Widgets/Visio/visio.tpl
-
21database/migrations/20250331170107_add_accent_color_to_users_table.php
-
16public/scripts/movim_visio.js
-
17public/theme/css/color.css
-
4public/theme/css/form.css
-
6public/theme/css/notification.css
-
2public/theme/css/style.css
-
2src/Moxl/Xec/Payload/MAMResult.php
@ -1,3 +1,4 @@ |
|||
body { |
|||
{loop="$colors"}--p-{$key}: {$value};{/loop} |
|||
--movim-accent: var(--p-{$accentcolor}); |
|||
} |
@ -0,0 +1,6 @@ |
|||
<div class="radio"> |
|||
<input name="accentcolor" value="{$color}" id="accentcolor_{$color}" type="radio" |
|||
{if="$conf->accentcolor == $color"}checked{/if}> |
|||
<label for="accentcolor_{$color}" style="border-color: var(--p-{$color}); background-color: var(--p-{$color})" |
|||
onclick="Config.setAccentColor('{$color}')"></label> |
|||
</div> |
@ -0,0 +1,21 @@ |
|||
<?php |
|||
|
|||
use Movim\Migration; |
|||
use Illuminate\Database\Schema\Blueprint; |
|||
|
|||
class AddAccentColorToUsersTable extends Migration |
|||
{ |
|||
public function up() |
|||
{ |
|||
$this->schema->table('users', function (Blueprint $table) { |
|||
$table->string('accentcolor')->default('dorange'); |
|||
}); |
|||
} |
|||
|
|||
public function down() |
|||
{ |
|||
$this->schema->table('users', function (Blueprint $table) { |
|||
$table->dropColumn('accentcolor'); |
|||
}); |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue