MozTW 討論區
https://forum.moztw.org/

等待處理
https://forum.moztw.org/viewtopic.php?f=16&t=17951
26 頁 (共 37 頁)

發表人:  kfly [ 2007-05-21, 18:02 ]
文章主題 : 

dora2002 寫:
話說 Sage 等會用到側邊欄的套件實在是有夠難搞


Merci chao 寫:
其實 Vista Aero 側欄的排版跟 IE7 的有很大區別
例如說 "書籤" 和 "歷史" 是不應該和 tabbar 在同一水平位置的 (不知 Vista 是怎樣的)
所以我覺得有重新研究的必要:
圖檔圖檔

哈哈哈哈!今天终于搞定了侧栏的部分,(个人比较满意 :) ) 相信体验是完全不同的! 不知兄弟们怎么看.
想了几个月,昨天晚上,突然想到了解决方法.重新设计了mySideBarHeader.xml 文件,终于搞定!
Merci chao兄看看有没有什么建议!
(这就是思考几个月,copy一分钟 :) )

今天没有去思考toolbarbutton.那个太难了.不是一下子能搞定的.思路都还没找到,哈 :oops:

提供新的测试版:
http://www1.webng.com/myfirefox/data/my ... 802-fx.jar

發表人:  Merci chao [ 2007-05-21, 19:16 ]
文章主題 : 

現在效果好很多 :P
至少不再看到不應出現的 "書籤, 歷史"

有沒有辦法在 sidebarheader 上方再新增一個 hbox?
目標效果如下:
圖檔
我想 Vista 的 IE 大概是這樣的吧?

發表人:  Merci chao [ 2007-05-21, 19:43 ]
文章主題 : 

搞定了 sidebar 之後, 有沒有興趣做這個? 8-)
圖檔
兩個黑色的三角形: .tab-drop-indicator{...}
滑鼠指標: .tab-drop-indicator-bar[dragging="true"] + .tabbrowser-strip .tabs-stack{cursor: url("chrome://")}

發表人:  Merci chao [ 2007-05-21, 20:06 ]
文章主題 : 

toolbarbutton, button 的結構 (草圖):
代碼:
//////////////////////////////// xml ////////////////////////////////
<xul:vbox flex="1">
   <xul:hbox class="button-top" flex="1">
      <xul:box class="button-top button-left"/>
      <xul:box class="button-top button-center" flex="1"/>
      <xul:box class="button-top button-right"/>
   </xul:hbox>
   <xul:hbox class="button-center" flex="1">
      <xul:box class="button-center button-left" flex="1"/>
      <xul:box class="button-center" flex="1"/>
      <xul:box class="button-center button-right" flex="1"/>
   </xul:hbox>
   <xul:hbox class="button-bottom" flex="1">
      <xul:box class="button-bottom button-left"/>
      <xul:box class="button-bottom button-center" flex="1"/>
      <xul:box class="button-bottom button-right"/>
   </xul:hbox>
</xul:vbox>

//////////////////////////////// css ////////////////////////////////
.button-top{
   max-height:Apx;
   height:Apx
}

.button-bottom{
   max-height:Bpx;
   height:Bpx
}

.button-left{
   max-width:Cpx;
   height:Cpx
}

.button-right{
   max-width:Dpx;
   height:Dpx
}

發表人:  kfly [ 2007-05-21, 20:07 ]
文章主題 : 

Merci chao 寫:
現在效果好很多 :P
至少不再看到不應出現的 "書籤, 歷史"

有沒有辦法在 sidebarheader 上方再新增一個 hbox?
目標效果如下:
圖檔
我想 Vista 的 IE 大概是這樣的吧?

这个效果作到应是可以的,但如果控制不出现"書籤, 歷史",就太难搞定了.
上面的图片是使用"小画家"吗?

發表人:  Merci chao [ 2007-05-21, 20:24 ]
文章主題 : 

kfly 寫:
这个效果作到应是可以的,但如果控制不出现"書籤, 歷史",就太难搞定了.
上面的图片是使用"小画家"吗?
當然是用小畫家的囉 :lol:
不過用 DOM 觀察器也能做到:
圖檔
只要把 myTabBox-Left-toolbox 複製到 sidebarheader 前面就完成了上圖 8-)

只不過在製作過程中, 左方的星星 (沒加號) 要用 style="display:-moz-box" 才能搞定, 而 tabbar 的星星 (有加號) 就要用 hidden="true"

發表人:  kfly [ 2007-05-21, 20:54 ]
文章主題 : 

Merci chao 寫:
toolbarbutton, button 的結構 (草圖):
代碼:
//////////////////////////////// xml ////////////////////////////////
<xul:vbox flex="1">
   <xul:hbox class="button-top" flex="1">
      <xul:box class="button-top button-left"/>
      <xul:box class="button-top button-center" flex="1"/>
      <xul:box class="button-top button-right"/>
   </xul:hbox>
   <xul:hbox class="button-center" flex="1">
      <xul:box class="button-center button-left" flex="1"/>
      <xul:box class="button-center" flex="1"/>
      <xul:box class="button-center button-right" flex="1"/>
   </xul:hbox>
   <xul:hbox class="button-bottom" flex="1">
      <xul:box class="button-bottom button-left"/>
      <xul:box class="button-bottom button-center" flex="1"/>
      <xul:box class="button-bottom button-right"/>
   </xul:hbox>
</xul:vbox>

//////////////////////////////// css ////////////////////////////////

button本身在哪儿呢? 还想理解一下.

發表人:  Merci chao [ 2007-05-21, 21:08 ]
文章主題 : 

有可能是這樣
代碼:
<button>
   <stack>

      <vbox class="button-background" flex="1">
         <hbox class="button-top" flex="1">
            <box class="button-top button-left"/>
            <box class="button-top button-center" flex="1"/>
            <box class="button-top button-right"/>
         </hbox>
         <hbox class="button-center" flex="1">
            <box class="button-center button-left" flex="1"/>
            <box class="button-center" flex="1"/>
            <box class="button-center button-right" flex="1"/>
         </hbox>
         <hbox class="button-bottom" flex="1">
            <box class="button-bottom button-left"/>
            <box class="button-bottom button-center" flex="1"/>
            <box class="button-bottom button-right"/>
         </hbox>
      </vbox>

      <hbox class="box-inherit button-box" align="center"
                  pack="center" flex="1">
         <image class="button-icon"/>
         <label class="button-text"/>
      </hbox>

   </stack>
</button>

發表人:  kfly [ 2007-05-21, 21:13 ]
文章主題 : 

Merci chao 寫:
有可能是這樣
代碼:
<button>
   
</button>

看上去有点象.明天来测试一下.

發表人:  Merci chao [ 2007-05-21, 22:17 ]
文章主題 : 

啊, 能幫忙在 Linux 下測試一下 Personal Menu:?:
手上甚麼也沒有真是麻煩...

發表人:  kfly [ 2007-05-21, 22:24 ]
文章主題 : 

Merci chao 寫:
啊, 能幫忙在 Linux 下測試一下 Personal Menu:?:
手上甚麼也沒有真是麻煩...


当然可以,您的大名! 去掉了?! :evil:

發表人:  Merci chao [ 2007-05-22, 14:34 ]
文章主題 : 

kfly 寫:
当然可以,您的大名! 去掉了?! :evil:
因為不想收太多把 myFireFox 和 Personal Menu 拉在一起問的信 :oops:
有時候跟本不知道怎麼回答...@@"

例如這個:
Pete Caramanis 寫:
Your theme is the best! Thank you. I have one question. Is it possible to have the bookmark icon in the tab bar open the dropdown bookmark menu from your Personal Menu extension instead of opening the bookmarks in the sidebar? Please let me know if there is any code I can change with userChrome.css or otherwise to implement that change. Thank you!

發表人:  kfly [ 2007-05-22, 18:58 ]
文章主題 : 

Merci chao 寫:
現在效果好很多 :P
至少不再看到不應出現的 "書籤, 歷史"

有沒有辦法在 sidebarheader 上方再新增一個 hbox?
目標效果如下:
圖檔
我想 Vista 的 IE 大概是這樣的吧?

已修改完成.Merci chao兄看看怎样? :)
就是那个"收藏中心"的label不知如何加上去.

Merci chao 寫:
搞定了 sidebar 之後, 有沒有興趣做這個? 8-)
圖檔
兩個黑色的三角形: .tab-drop-indicator{...}

已修改完成,不过我个人感觉还是,默认的好看点. :wink:

Merci chao 寫:
滑鼠指標: .tab-drop-indicator-bar[dragging="true"] + .tabbrowser-strip .tabs-stack{cursor: url("chrome://")}

加了,好象没有效果.还要试试.

Merci chao 寫:
因為不想收太多把 myFireFox 和 Personal Menu 拉在一起問的信 :oops:
有時候跟本不知道怎麼回答...@@"


明白了! :shock: .

Merci chao 寫:
啊, 能幫忙在 Linux 下測試一下 Personal Menu 嗎 Question
手上甚麼也沒有真是麻煩...

我已测试过了.在Linux中按ALT键,可以实现menubar的显示与隐藏,没有问题.
发现了一个问题.请看除附件.

那个按钮,晚上我再来想想.
http://www1.webng.com/myfirefox/data/my ... 803-fx.jar

附加檔案:
question.zip [361.23 KiB]
被下載 312 次

發表人:  Merci chao [ 2007-05-22, 19:49 ]
文章主題 : 

+ 側邊欄上沒加號的星星就算不指著, 也會顯示成指著的樣子

+ 試試改成這樣:
引言回覆:
#main-window sidebarheader{-moz-binding:......}


kfly 寫:
就是那个"收藏中心"的label不知如何加上去.
喔??? 好像沒有難度耶 :shock:
圖檔

kfly 寫:
已修改完成,不过我个人感觉还是,默认的好看点. :wink:
如果鼠標那個問題搞不定的話, 就用默認的好了

kfly 寫:
发现了一个问题.请看除附件.
檔案好像壞了, 開不了

發表人:  Merci chao [ 2007-05-22, 19:58 ]
文章主題 : 

+ 試試把有加號的星星改成一個 "選單按鈕", 像是 IE 的那個

所有分頁加入書籤 Browser:BookmarkAllTabs

26 頁 (共 37 頁) 所有顯示的時間為 UTC + 8 小時
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/