mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-15 00:34:05 +09:00
replace "centered in center panel" by "centered between content"
This commit is contained in:
@@ -2213,7 +2213,7 @@
|
||||
<items>
|
||||
<item id="LEFTPANEL" translatable="yes">Left panel</item>
|
||||
<item id="CENTEREDMONITOR" translatable="yes">Centered in monitor</item>
|
||||
<item id="CENTEREDCENTER" translatable="yes">Centered in center panel</item>
|
||||
<item id="CENTEREDCONTENT" translatable="yes">Centered in content</item>
|
||||
</items>
|
||||
</object>
|
||||
<packing>
|
||||
|
||||
2
panel.js
2
panel.js
@@ -343,7 +343,7 @@ var dtpPanel = new Lang.Class({
|
||||
|
||||
if (taskbarPosition == 'LEFTPANEL') {
|
||||
sideWidth = allocWidth - rightNaturalWidth - centerNaturalWidth;
|
||||
} else if (taskbarPosition == 'CENTEREDCENTER') {
|
||||
} else if (taskbarPosition == 'CENTEREDCONTENT') {
|
||||
leftSideWidth = (allocWidth - centerNaturalWidth + leftNaturalWidth - rightNaturalWidth) / 2;
|
||||
rightSideWidth = (allocWidth - centerNaturalWidth - leftNaturalWidth + rightNaturalWidth) / 2;
|
||||
} else if (taskbarPosition == 'CENTEREDMONITOR') {
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<enum id='org.gnome.shell.extensions.dash-to-panel.taskbarPosition'>
|
||||
<value value='0' nick='LEFTPANEL'/>
|
||||
<value value='1' nick='CENTEREDMONITOR'/>
|
||||
<value value='2' nick='CENTEREDCENTER'/>
|
||||
<value value='2' nick='CENTEREDCONTENT'/>
|
||||
</enum>
|
||||
<enum id='org.gnome.shell.extensions.dash-to-panel.hotkeyPrefix'>
|
||||
<value value='0' nick='Super'/>
|
||||
|
||||
Reference in New Issue
Block a user