Форум русскоязычного сообщества Ubuntu


Хотите сделать посильный вклад в развитие Ubuntu и русскоязычного сообщества?
Помогите нам с документацией!

Автор Тема: Иконки 32х32 в unity-2d-launcher  (Прочитано 1423 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Axa-Ru

  • Автор темы
  • Гость
Иконки 32х32 в unity-2d-launcher
« : 20 Августа 2011, 13:53:24 »
В Unity-2d-launcher можно поменять размер иконок на меньший.

На скриншоте показан фрагмент панели запуска с иконками 32х32.



Делается это так:
Сохраняете в каталог /tmp (например) приведенный patch
diff -c -r launcher.origin/LauncherItem.qml launcher/LauncherItem.qml
*** launcher.origin/LauncherItem.qml 2011-08-19 15:09:34.000000000 +0400
--- launcher/LauncherItem.qml 2011-08-20 13:33:41.010329831 +0400
***************
*** 235,242 ****
                  anchors.centerIn: parent
                  smooth: true
 
!                 sourceSize.width: 48
!                 sourceSize.height: 48
 
                  /* Whenever one of the parameters used in calculating the background color of
                     the icon changes, recalculate its value */
--- 235,242 ----
                  anchors.centerIn: parent
                  smooth: true
 
!                 sourceSize.width: 32
!                 sourceSize.height: 32
 
                  /* Whenever one of the parameters used in calculating the background color of
                     the icon changes, recalculate its value */
diff -c -r launcher.origin/LauncherList.qml launcher/LauncherList.qml
*** launcher.origin/LauncherList.qml 2011-08-19 15:09:34.000000000 +0400
--- launcher/LauncherList.qml 2011-08-20 13:28:15.150329636 +0400
***************
*** 26,34 ****
         by adding some padding to the items because of
         http://bugreports.qt.nokia.com/browse/QTBUG-17622. */
      spacing: 0
!     property int itemPadding: 5
 
!     property int tileSize: 54
 
      /* Keep a reference to the currently visible contextual menu */
      property variant visibleMenu
--- 26,34 ----
         by adding some padding to the items because of
         http://bugreports.qt.nokia.com/browse/QTBUG-17622. */
      spacing: 0
!     property int itemPadding: 1
 
!     property int tileSize: 32
 
      /* Keep a reference to the currently visible contextual menu */
      property variant visibleMenu

Затем открываете терминал и вводите следующие команды:
cd/usr/share/unity-2d
sudo -i
cp -r launcher launcher.origin
cd launcher
patch -p1 < /tmp/32_icon_launcher.diff
killall unity-2d-launcher
exit
« Последнее редактирование: 20 Августа 2011, 13:56:21 от Axa-Ru »

Онлайн SergeyIT

  • Заслуженный пользователь
  • Старожил
  • *
  • Сообщений: 5589
  • Все по палатам!
    • Просмотр профиля
Re: Иконки 32х32 в unity-2d-launcher
« Ответ #1 : 26 Января 2012, 18:03:07 »
Попробовал в 12.04. Надо переписывать часть лаунчера, чтобы правильно работало
Извините, я все еще учусь

 

Страница сгенерирована за 0.046 секунд. Запросов: 23.