mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-05 00:55:12 +00:00
Moved out common default style entries from settings.
This commit is contained in:
@@ -116,12 +116,12 @@ private:
|
||||
void RenameBox(not_null<Ui::GenericBox*> box) {
|
||||
box->setTitle(tr::lng_settings_rename_device_title());
|
||||
|
||||
const auto skip = st::settingsSubsectionTitlePadding.top();
|
||||
const auto skip = st::defaultSubsectionTitlePadding.top();
|
||||
box->addRow(
|
||||
object_ptr<Ui::FlatLabel>(
|
||||
box,
|
||||
tr::lng_settings_device_name(),
|
||||
st::settingsSubsectionTitle),
|
||||
st::defaultSubsectionTitle),
|
||||
st::boxRowPadding + style::margins(0, skip, 0, 0));
|
||||
const auto name = box->addRow(
|
||||
object_ptr<Ui::InputField>(
|
||||
@@ -920,8 +920,8 @@ void SessionsContent::Inner::setupContent() {
|
||||
) | rpl::start_with_next([=](QSize outer, QPoint position) {
|
||||
const auto x = st::sessionTerminateSkip
|
||||
+ st::sessionTerminate.iconPosition.x();
|
||||
const auto y = st::settingsSubsectionTitlePadding.top()
|
||||
+ st::settingsSubsectionTitle.style.font->ascent
|
||||
const auto y = st::defaultSubsectionTitlePadding.top()
|
||||
+ st::defaultSubsectionTitle.style.font->ascent
|
||||
- st::defaultLinkButton.font->ascent;
|
||||
rename->moveToRight(x, y, outer.width());
|
||||
}, rename->lifetime());
|
||||
@@ -999,7 +999,7 @@ void SessionsContent::Inner::setupContent() {
|
||||
content,
|
||||
tr::lng_sessions_other_desc(),
|
||||
st::boxDividerLabel),
|
||||
st::settingsDividerLabelPadding))->setDuration(0);
|
||||
st::defaultBoxDividerLabelPadding))->setDuration(0);
|
||||
|
||||
terminateWrap->toggleOn(
|
||||
rpl::combine(
|
||||
|
Reference in New Issue
Block a user